treble/luna
treble/luna
DIAdiscord.js - Imagine an app
Created by treble/luna on 8/6/2023 in #djs-questions
Weird issue with GuildMemberUpdate event
i'm running into a really weird issue with the guildMemberUpdate event when adding a role: For some reason the nickname is null on the oldMember, whilst having one set The newMember does have a nickname, and since i check for nicnkame updates by comparing <GuildMember>.displayName, the bot thinks the nickname has updated while it has not.
46 replies
DIAdiscord.js - Imagine an app
Created by treble/luna on 7/18/2023 in #djs-questions
What is the easiest way to edit multiple permissionOverwrites?
So far i have tried <TextChannel>.edit, but this overrides all current permissions. So i've spread those into an array and then pushed the new overwrites into them, but that brings me to point 2: this is for a close ticket command, thus the permissions i edit are for the member that created the ticket, and its setting the SendMessages permission to false Now, if i spread the current permissions, and then add the updated ones, this means the array includes both the current permissions (in which the SendMessages permission is set to true), and the new one, in which it is set to false. Which one of these will override? I assume since the edited ones are the last to be pushed into the array, they will override but i'm unsure Or am i making things overcomplicated (again) and is there a really easy way to do this that i'm looking over?
37 replies
DIAdiscord.js - Imagine an app
Created by treble/luna on 6/21/2023 in #djs-questions
Weird bug (?) with typescript and SlashCommandBuilders
I've ran into a weird issue with ts and SlashCommandBuilders
8 replies
DIAdiscord.js - Imagine an app
Created by treble/luna on 6/3/2023 in #djs-questions
<Member>.voice returns null
Heyhey, i've ran into an issue where whenever a member is connected to a channel when the bot starts or restarts, and then leaves, the old voicestate of that member will always be null. Any ideas on how to possbily prevent this?
13 replies
DIAdiscord.js - Imagine an app
Created by treble/luna on 2/27/2023 in #djs-questions
Internal error while fetching text channel
Recently updated to discordjs v14.7.1, and ran into the following issue: Node v18.8.0
7 replies
DIAdiscord.js - Imagine an app
Created by treble/luna on 9/28/2022 in #djs-questions
AutoComplete event not firing
Hello, (its me again), i've been trying to get the autocomplete property to work but i cant get it to work. No event is fired at all, and all options just come up as 'failed to load' Djs v14.3.0, node v18.8.0
18 replies
DIAdiscord.js - Imagine an app
Created by treble/luna on 9/24/2022 in #djs-questions
VoiceState channelId is null
When leaving a voice channel, both the oldState.channelId and newState.channelId are null. djs v14.3.0, node 18.8.0 Bot has all the required intents enabled, and works fine when joining a channel (join to create voice bot). I also noticed that when connecting to a channel, both the old and newState have the same channelId
7 replies
DIAdiscord.js - Imagine an app
Created by treble/luna on 9/16/2022 in #djs-questions
InviteCreate not working fully
The InviteCreate event only fired when the invite is created withing a channel, and not within the guild itself
32 replies
DIAdiscord.js - Imagine an app
Created by treble/luna on 9/3/2022 in #djs-questions
Update slash commands
How can one update both guild and public commands without deleting them? (if guild commands are updated first, public commands will delete them)
9 replies