#Unban

24 messages · Page 1 of 1 (latest)

outer thicket
#

i got this unban code, it is part of a bigger mod commands group, its a subcommand. i am not catching anything on the console, i am just getting 'application didnt respond' on discord. all the listeners, interaction handlers are fine because rest of the subcommands in the same file work just fine.

final crownBOT
#
  • What's your exact discord.js npm list discord.js and node node -v version?
  • Not a discord.js issue? Check out #1081585952654360687.
  • Consider reading #how-to-get-help to improve your question!
  • Explain what exactly your issue is.
  • Post the full error stack trace, not just the top part!
  • Show your code!
  • Issue solved? Press the button!
  • Marked as resolved by OP
outer thicket
#

please just ping me as soon as possible if anyone has a solution

rare cliff
#

@outer thicket If I understood correctly your defer is not getting through, so it might just be an issue with your internet connection

outer thicket
#

but the thing is it works for other commands literally in the same file

#

i keep thinking its the logic but i dont see anything wrong in the code

rare cliff
#

Show one of your other subcommands

outer thicket
#

aight lemme boot up my pc

#

Just a sec

#
            await interaction.deferReply({ ephemeral: true });
                if (!timeouts.has(member.id)) {
                    return interaction.editReply({ content: 'This user is not currently timed out', ephemeral: true });
                }

                //remove timeout
                await member.timeout(null, `[${reason} - by ${interaction.user.username}]`);

                let dm = ":success:"; //if dm succesful
                //dm user
                const dmEmbedremove = new EmbedBuilder()
                .setDescription(`:success: Your timeout in **MMI Headquarters** has been removed because \`${reason}\``)
                .setColor("#2b2d31");
                const component = {
                    type: 1, // ActionRow
                    components: [
                      {
                        type: 2, // Button
                        style: 5, // Link style
                        label: '💬 Server',
                        url: 'https://discord.com/channels/726914118736543836/1247511226427117618',
                      },
                    ],
                  };
                   await member.send({ embeds: [dmEmbedremove], components: [component]}).catch(err => {
                   dm = ":deny:"; //if dm fails
               });```
#

here is the unmute command and defer works just fine

storm talon
#

Show the whole file

thorny cypressBOT
#

To share long code snippets, use a service like gist, sourcebin, pastebin, or similar instead of posting them as large code blocks or files.

outer thicket
#

You want pastebin or txt?

#

cuz paste bin thinks its offensive

storm talon
outer thicket
#

Sorry for that

#

but you’ll have to login cuz like i said pastebin thinks its offensive so i had to make it private

#

and ik you are just doing this out of courtesy but i kinda need a solution quick

storm talon
#

Then use a different of the proposed services… because like you said we are all volunteers here. So the extra effort should be put in by you, not expected from those helping you