CanadienDragon
DIAdiscord.js - Imagine an app
•Created by CanadienDragon on 6/4/2024 in #djs-questions
Slash Command Register
commands in my server only register for me, when anyone else trys to use them they dont exist
Node Version: 20.11.1
Discord.js Version: 14.15.2
This is how i register my commands below
:
Code: https://gist.github.com/SkullGaming31/4ba460f861218c24211e1269ccae5ad117 replies
DIAdiscord.js - Imagine an app
•Created by CanadienDragon on 3/8/2024 in #djs-questions
Commands
my commands for some reason will not delete from my server
22 replies
DIAdiscord.js - Imagine an app
•Created by CanadienDragon on 2/26/2024 in #djs-questions
Discord Presence
Discord.js Version 14.14.1
NodeJS Version: 18.15.0
Been working on my logs for discord trying to get a presence log so when someone changes there custom status/online indicator it logs it in my logs channel, when when i inspect the guild/user object the presence isnt there its just
i have a presence set, i even tryed changing my custom status and clearing it, nothing seems to change it, i do have the intent for presence but still nothing
guildMemberUpdate Code: https://gist.github.com/SkullGaming31/cde25fbc5b8bc7d5b0e05a8c368770bd
Console.log for old and newMember: https://gist.github.com/SkullGaming31/16ee4796294ee1ee79a3e9064f5933ad16 replies
DIAdiscord.js - Imagine an app
•Created by CanadienDragon on 9/23/2023 in #djs-questions
guildMemberUpdate
Issue: anytime someone's roles is updated or they change there nickname it double/triple posts to my logs channel and i cant figure out why
Node: 18.16.0
Discord.js: 14.13.0
Code: https://gist.github.com/SkullGaming31/0cad0c256b3cbf6c826785d81ca1d18f
6 replies
DIAdiscord.js - Imagine an app
•Created by CanadienDragon on 9/2/2023 in #djs-questions
Using Commands
my main discord account can access my bots commands but when i try to use commands from a second account nothing shows up for my bot, what would cause this to happen?
Discord.js: 14.13.0
Node: 18.15.0
this is one of my commands when its registered
20 replies
DIAdiscord.js - Imagine an app
•Created by CanadienDragon on 8/24/2023 in #djs-questions
Updated my bot to the latest version of djs
TSError: ⨯ Unable to compile TypeScript:
src/Commands/Developer/emit.ts:56:27 - error TS2339: Property 'getString' does not exist on type 'Omit<CommandInteractionOptionResolver<"cached">, "getMessage" | "getFocused">'.
56 const choices = options.getString('event');
~~~~~
at createTSError (C:\Development\DragonBot\node_modules\ts-node\src\index.ts:859:12)
at reportTSError (C:\Development\DragonBot\node_modules\ts-node\src\index.ts:863:19)
at getOutput (C:\Development\DragonBot\node_modules\ts-node\src\index.ts:1077:36)
at Object.compile (C:\Development\DragonBot\node_modules\ts-node\src\index.ts:1433:41)
at Module.m._compile (C:\Development\DragonBot\node_modules\ts-node\src\index.ts:1617:30)
at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
at Object.require.extensions.<computed> [as .ts] (C:\Development\DragonBot\node_modules\ts-node\src\index.ts:1621:12)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Function.Module._load (node:internal/modules/cjs/loader:958:12)
at Module.require (node:internal/modules/cjs/loader:1141:19) {
diagnosticCodes: [ 2339 ]
}
this is the line its pointing too
i have tryed typeguarding with inCachedGuild(), inGuild() and neither of them work, could anyone help me out?
34 replies
DIAdiscord.js - Imagine an app
•Created by CanadienDragon on 4/18/2023 in #djs-questions
.setImage EmbedBuilder
im learning to interact with api's and im having trouble with setImage for the embedbuilder
theres alway a url in the data for a image but no matter what i do it will not set the image
ive tried with just using the Random.data.icon_url in the setImage and still nothing
there are no errors in the console it just doesnt set the image
Node: 18.5.0
Discord: 14.9.0
3 replies
DIAdiscord.js - Imagine an app
•Created by CanadienDragon on 9/30/2022 in #djs-questions
When i start my bot
Discord.js: 14.5.1
node: 16.17.1
8 replies
DIAdiscord.js - Imagine an app
•Created by CanadienDragon on 9/26/2022 in #djs-questions
ChannelCreate with my bot TS
DiscordJS: 14.5.0 Node: 16.16.0
(property) Guild.channels: GuildChannelManager | undefined
No overload matches this call.
Overload 2 of 2, '(options: GuildChannelCreateOptions): Promise<TextChannel> | undefined', gave the following error.
Type 'String' is not assignable to type 'CategoryChannelResolvable | null | undefined'.
Overload 2 of 2, '(options: GuildChannelCreateOptions): Promise<TextChannel> | undefined', gave the following error.
Type 'String' is not assignable to type 'string | GuildMember | Role | User | Message<boolean> | ThreadMember'.
Overload 2 of 2, '(options: GuildChannelCreateOptions): Promise<TextChannel> | undefined', gave the following error.
Type 'String' is not assignable to type 'string | GuildMember | Role | User | Message<boolean> | ThreadMember'.ts(2769)
index.d.ts(4901, 3): The expected type comes from property 'parent' which is declared here on type 'GuildChannelCreateOptions'
index.d.ts(2118, 10): The expected type comes from property 'id' which is declared here on type 'OverwriteResolvable'
index.d.ts(2118, 10): The expected type comes from property 'id' which is declared here on type 'OverwriteResolvable'
the IDs for Category, botrole and the everyone role are saved in a mongoDB
12 replies
DIAdiscord.js - Imagine an app
•Created by CanadienDragon on 9/25/2022 in #djs-questions
input.iconURL error TS
Node: 16.16.0
Discord.js: 14.4.0
The URL of the icon
Type 'string | null | undefined' is not assignable to type 'string | undefined'.
Type 'null' is not assignable to type 'string | undefined'
3 replies
DIAdiscord.js - Imagine an app
•Created by CanadienDragon on 9/5/2022 in #djs-questions
Discord.js no autocomplete
in my ready.js file i created im not getting any autocomplete for client. i have the jsdocs for it,
[email protected],
Node: 16.16.0
i only get editor suggestions, is this VSCode or is it something with discord.js V14?2 replies
DIAdiscord.js - Imagine an app
•Created by CanadienDragon on 7/26/2022 in #djs-questions
Undici error
ever since i updated my Discord.js to v14 ive been getting this error
Discord.js V14.0.3
Node: 16.16.0
but i have no installed undici at all so im not sure why im getting an error for it
7 replies
DIAdiscord.js - Imagine an app
•Created by CanadienDragon on 7/22/2022 in #djs-questions
when my bot joins another guild and fires the guildCreate event
34 replies