Asleep
Asleep
Explore posts from servers
BSBuape Studios
Created by Philipp👨💻 on 11/18/2024 in #kiai-support
API Docs Down
Hey! We apologize for the downtime, the docs and the entire API should now be working. Let me know if anything else seems off.
4 replies
BSBuape Studios
Created by hannah.i.a on 11/11/2024 in #kiai-support
Trouble with XP Bot
Hey. It appears the setting is actually changing, it’s just erroring while attempting to display a result. I am unable to reproduce this. Could you run it again so I can capture the log? Tell me the timestamp of when it was executed.
10 replies
BSBuape Studios
Created by hannah.i.a on 11/11/2024 in #kiai-support
Trouble with XP Bot
Okay. I will look into this.
10 replies
BSBuape Studios
Created by hannah.i.a on 11/11/2024 in #kiai-support
Trouble with XP Bot
Hi. Could you please clarify a bit more on what you are experiencing?
10 replies
BSBuape Studios
Created by Karl on 10/26/2024 in #kiai-support
Getting Started Link Broken
Hey. I’ve forwarded this to our developer team. If you need it, the corrected link is this: https://docs.kiai.app/#getting-started
6 replies
BSBuape Studios
Created by Shelldrake on 10/25/2024 in #kiai-support
Using this bot for character progression in an rp server.
Discord only allows verified bots to see message author/content information if you are approved for it/your bot depends on it, and that is why we cannot add this to the main instance of Kiai.
44 replies
BSBuape Studios
Created by Shelldrake on 10/25/2024 in #kiai-support
Using this bot for character progression in an rp server.
It scans the tupper/pluralkit channel for messages, and treats the webhook messages there as regular user messages.
44 replies
BSBuape Studios
Created by Sop on 10/26/2024 in #kiai-support
How do I give people role rewards
👋 Hey, You can add one by using the /rewards add role command (/rewards add role).
5 replies
CCarbon
Created by Asleep on 9/17/2024 in #📌support
TypeError when importing any command or Client
issue fixed ✅
23 replies
CCarbon
Created by Asleep on 9/17/2024 in #📌support
TypeError when importing any command or Client
I must've been doing something wrong the first, time turbopack appears to fix it now
23 replies
CCarbon
Created by Asleep on 9/17/2024 in #📌support
TypeError when importing any command or Client
I have time, gonna try again
23 replies
CCarbon
Created by Asleep on 9/17/2024 in #📌support
TypeError when importing any command or Client
I can try that again.
23 replies
CCarbon
Created by Asleep on 9/17/2024 in #📌support
TypeError when importing any command or Client
I created a post in the Next support server.
23 replies
CCarbon
Created by Asleep on 9/17/2024 in #📌support
TypeError when importing any command or Client
I can't access the base class by itself either.
23 replies
CCarbon
Created by Asleep on 9/17/2024 in #📌support
TypeError when importing any command or Client
Okay. It seems to appear when I initialize the Client.
23 replies
CCarbon
Created by Asleep on 9/17/2024 in #📌support
TypeError when importing any command or Client
I'm currently experimenting to see where exactly it's erroring. I don't think it's at import anymore. I've gotten it to import in an API route.
23 replies
CCarbon
Created by Asleep on 9/17/2024 in #📌support
TypeError when importing any command or Client
Next.js 14.2.11. I am not using turbopack.
23 replies
CCarbon
Created by Asleep on 9/17/2024 in #📌support
TypeError when importing any command or Client
Yeah, that’s what’s weird about it. I’ve tried reinstalling the package to no avail.
23 replies
CCarbon
Created by Asleep on 9/17/2024 in #📌support
TypeError when importing any command or Client
I'm trying to make a bot builder using Carbon. This is my interactions endpoint, and where it errors upon import.
import type { NextApiRequest, NextApiResponse } from "next";
import { db } from "~/server/db";
import { Client, ClientMode } from "@buape/carbon"
import CommandHandler from "~/server/discord/handler";

export async function POST(req: NextApiRequest, res: NextApiResponse) {
if (!req.body.data) return res.status(400);
const bot = await db.bot.findFirst({
where: {
"clientId": req.body.application_id
}
})
console.log(bot)
if (!bot) return res.status(401);
const client = new Client({
clientId: bot.clientId,
publicKey: bot.publicKey,
token: bot.token,
mode: ClientMode.Web
}, [
new CommandHandler()
])

await client.router.fetch(req.body)
}
import type { NextApiRequest, NextApiResponse } from "next";
import { db } from "~/server/db";
import { Client, ClientMode } from "@buape/carbon"
import CommandHandler from "~/server/discord/handler";

export async function POST(req: NextApiRequest, res: NextApiResponse) {
if (!req.body.data) return res.status(400);
const bot = await db.bot.findFirst({
where: {
"clientId": req.body.application_id
}
})
console.log(bot)
if (!bot) return res.status(401);
const client = new Client({
clientId: bot.clientId,
publicKey: bot.publicKey,
token: bot.token,
mode: ClientMode.Web
}, [
new CommandHandler()
])

await client.router.fetch(req.body)
}
23 replies
CCarbon
Created by Asleep on 9/17/2024 in #📌support
TypeError when importing any command or Client
23 replies