Bradley
Bradley
Explore posts from servers
DIAdiscord.js - Imagine a boo! 👻
Created by Bradley on 5/3/2024 in #djs-questions
What are events used for?
What are events used for?
9 replies
DHDistant Horizons
Created by Bradley on 3/27/2024 in #help-me
Shaders
Is there like ANY shader pack that works with distant horizons, and if so, where do I download it? I've looked up Bliss but there's only not DH compatible versions.
3 replies
DIAdiscord.js - Imagine a boo! 👻
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 a boo! 👻
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:
const user = interaction.options.getUser('user')
const guild = client.guilds.cache.get(guildId);

if (await guild.bans.fetch(user))
const user = interaction.options.getUser('user')
const guild = client.guilds.cache.get(guildId);

if (await guild.bans.fetch(user))
but that didn't work, saying DiscordAPIError[10026]: Unknown Ban
4 replies