We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcd4d04 commit b6ed3a3Copy full SHA for b6ed3a3
interactions/autocomplateUnban.js
@@ -17,8 +17,8 @@ module.exports = new Underline.SlashCommand({
17
description: "...",
18
autocomplete: true,
19
async onComplete(inter, value) {
20
- await inter.guild.bans.fetch({ cache: false });
21
- return [...inter.guild.bans.cache.values()]
+ let bans = await inter.guild.bans.fetch({ cache: false });
+ return [...bans.values()]
22
.map(i => ({ name: i.user.tag, value: i.user.id }));
23
},
24
required: true
0 commit comments