Miss matching objects on permission setting.
Typescript says that permissionOverwrites does not exits in GuildBasedChannel, even tho it exists, is there a specific way to setup permissions for a channel that i'm not understanding here?
Solution:
See https://discord.com/channels/222078108977594368/769862166131245066/1076213839990894604
Use
!isStageChannel(channel)
(function from @sapphire/discord.js-utilities
) to eliminate the StageChannel
type...H
Huijiro•435d ago
Tried to setup it by the first code, it did not work.
Solution
F
Favna•435d ago
See https://discord.com/channels/222078108977594368/769862166131245066/1076213839990894604
Use
!isStageChannel(channel)
(function from @sapphire/discord.js-utilities
) to eliminate the StageChannel
typeH
Huijiro•435d ago
I found an alternative that works better.
H
Huijiro•435d ago
But thanks for the help.
Welcome to the Sapphire Discord server! The next-gen object-oriented Discord.js bot framework can be found here.
2.2KMembers
View on DiscordWant results from more Discord servers?
More PostsrequiredClientPermissions check always rejectingWhile `requiredUserPermissions: ['ManageRoles']` works great. The client check `requiredClientPermisUnable to get member data from users that have left / kickedHi, I am trying to get data from members who have left the discord server or have been kicked. But ICatch all chat input command errors listenerHello ! I tried using the `Events.ChatInputCommandError` listener to catch any errors thrown by the Multiple Clients on one file/instanceI was wondering if its possible to run multiple clients on one file (i.e. .forEach()-ing `new ClientHow to present Slashcommands?How can I present the Slashcommands of my bot in his About Me like for example carl.gg does?Interaction HandlersAm I required to specify to sapphire where my interaction handlers directory is? A `interaction-handbot won't get on and connect to discord.hi, my bot won't turn on. i've coded a lot of bots before with sapphire and they worked just fine, dHow Do I Make a Project in my current Directory?I want to make the proj in `workspaces/DashMate` not like `workspaces/DashMate/${ProjName}`Bot wont go onlinewhen I try to run the script `yarn dev` I get this problemGuildDelete Event somehow gets triggered when I restart my BotI have no idea whats happening but if my bot (docker container) restarts, this notification gets senTypeError: Class extends value undefined is not a constructor or nullHey, newbie here in both TypeScript and Sapphire, and I'm trying to build a command but I'm getting THREAD_CREATE event Listener run method argumentsWhat I want to do:
I want to inspect the id of the parent channel where the thread was created.
The