🇿 🇽 🇧 🇪 🇦 🇲
🇿 🇽 🇧 🇪 🇦 🇲
DIAdiscord.js - Imagine an app
Created by 🇿 🇽 🇧 🇪 🇦 🇲 on 11/7/2023 in #djs-questions
Check if a member is already on timeout
thank you so much 😭 i'm actually insanely dumb for not figuring that out
15 replies
DIAdiscord.js - Imagine an app
Created by 🇿 🇽 🇧 🇪 🇦 🇲 on 11/7/2023 in #djs-questions
Check if a member is already on timeout
i'm gonna be amazed if i'm actually that dumb..
15 replies
DIAdiscord.js - Imagine an app
Created by 🇿 🇽 🇧 🇪 🇦 🇲 on 11/7/2023 in #djs-questions
Check if a member is already on timeout
how so?
15 replies
DIAdiscord.js - Imagine an app
Created by 🇿 🇽 🇧 🇪 🇦 🇲 on 11/7/2023 in #djs-questions
Check if a member is already on timeout
it times them out, and if they're already muted it sends 'User already muted'
15 replies
DIAdiscord.js - Imagine an app
Created by 🇿 🇽 🇧 🇪 🇦 🇲 on 11/7/2023 in #djs-questions
Check if a member is already on timeout
yes
15 replies
DIAdiscord.js - Imagine an app
Created by 🇿 🇽 🇧 🇪 🇦 🇲 on 11/7/2023 in #djs-questions
Check if a member is already on timeout
const member = await interaction.options.getMember('user');

const time = await interaction.options.getString('time');
const muteTime = ms(time);
if(muteTime === undefined) return interaction.reply({ content: 'Invalid Time' })

await member.timeout(muteTime);
if(member.isCommunicationDisabled() === true) return interaction.reply ('User already muted')
const member = await interaction.options.getMember('user');

const time = await interaction.options.getString('time');
const muteTime = ms(time);
if(muteTime === undefined) return interaction.reply({ content: 'Invalid Time' })

await member.timeout(muteTime);
if(member.isCommunicationDisabled() === true) return interaction.reply ('User already muted')
this is the full ish part
15 replies
DIAdiscord.js - Imagine an app
Created by 🇿 🇽 🇧 🇪 🇦 🇲 on 11/7/2023 in #djs-questions
Check if a member is already on timeout
and it says 'User already muted' while they are not
15 replies
DIAdiscord.js - Imagine an app
Created by 🇿 🇽 🇧 🇪 🇦 🇲 on 11/7/2023 in #djs-questions
Check if a member is already on timeout
No, they've only just been muted
15 replies