HolyCow
HolyCow
DIAdiscord.js - Imagine an app
Created by HolyCow on 6/16/2024 in #djs-questions
Unban
thanks for your help
22 replies
DIAdiscord.js - Imagine an app
Created by HolyCow on 6/16/2024 in #djs-questions
Unban
and ik you are just doing this out of courtesy but i kinda need a solution quick
22 replies
DIAdiscord.js - Imagine an app
Created by HolyCow on 6/16/2024 in #djs-questions
Unban
but you’ll have to login cuz like i said pastebin thinks its offensive so i had to make it private
22 replies
DIAdiscord.js - Imagine an app
Created by HolyCow on 6/16/2024 in #djs-questions
Unban
Sorry for that
22 replies
DIAdiscord.js - Imagine an app
Created by HolyCow on 6/16/2024 in #djs-questions
Unban
22 replies
DIAdiscord.js - Imagine an app
Created by HolyCow on 6/16/2024 in #djs-questions
Unban
cuz paste bin thinks its offensive
22 replies
DIAdiscord.js - Imagine an app
Created by HolyCow on 6/16/2024 in #djs-questions
Unban
ah well heres a txt
22 replies
DIAdiscord.js - Imagine an app
Created by HolyCow on 6/16/2024 in #djs-questions
Unban
You want pastebin or txt?
22 replies
DIAdiscord.js - Imagine an app
Created by HolyCow on 6/16/2024 in #djs-questions
Unban
its pretty big
22 replies
DIAdiscord.js - Imagine an app
Created by HolyCow on 6/16/2024 in #djs-questions
Unban
here is the unmute command and defer works just fine
22 replies
DIAdiscord.js - Imagine an app
Created by HolyCow on 6/16/2024 in #djs-questions
Unban
else if (subcommand === "unmute") {
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
});
else if (subcommand === "unmute") {
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
});
22 replies
DIAdiscord.js - Imagine an app
Created by HolyCow on 6/16/2024 in #djs-questions
Unban
Just a sec
22 replies
DIAdiscord.js - Imagine an app
Created by HolyCow on 6/16/2024 in #djs-questions
Unban
aight lemme boot up my pc
22 replies
DIAdiscord.js - Imagine an app
Created by HolyCow on 6/16/2024 in #djs-questions
Unban
i keep thinking its the logic but i dont see anything wrong in the code
22 replies
DIAdiscord.js - Imagine an app
Created by HolyCow on 6/16/2024 in #djs-questions
Unban
but the thing is it works for other commands literally in the same file
22 replies
DIAdiscord.js - Imagine an app
Created by HolyCow on 6/16/2024 in #djs-questions
Unban
please just ping me as soon as possible if anyone has a solution
22 replies
DIAdiscord.js - Imagine an app
Created by HolyCow on 6/16/2024 in #djs-questions
Unban
22 replies