Bradley
Explore posts from serversDIAdiscord.js - Imagine an app
•Created by Bradley on 5/3/2024 in #djs-questions
What are events used for?
What are events used for?
9 replies
DIAdiscord.js - Imagine an app
•Created by Bradley on 3/26/2024 in #djs-questions
addIntegerOption
how does addIntegerOption work? since i can't find it online
.addIntegerOption(option =>
option.setName('duration')
.setDescription('The length of the timeout')
.setRequired(true)
.addChoices(
{ name: '60 seconds', value: '60_000' },
{ name: '5 minutes', value: '300_000' },
{ name: '30 minutes', value: '1800_000' },
{ name: '1 hour', value: '3600_000' },
{ name: '12 hours', value: '43200_000' },
{ name: '1 day', value: '86400_000' },
{ name: '2 days', value: '172800_000' },
{ name: '1 week', value: '604800_000' },
))
2 replies
DIAdiscord.js - Imagine an app
•Created by Bradley on 3/26/2024 in #djs-voice
Check if user is banned
I've checked online etc but can't find it
I'm trying to make an unban command but when the user isn't banned and it's ran, it crashes the bot, so I'm trying to make it so it checks if the user is banned, however, I can't find out where to do that.
i tried this:
but that didn't work, saying DiscordAPIError[10026]: Unknown Ban
4 replies