Skip to content

Commit 2fb9053

Browse files
committed
Fix prefix kick command by resolving getMember synchronously from cache.
1 parent 7c0381f commit 2fb9053

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/utils/messageAdapter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export function createMockInteraction(message, commandData, args) {
9797
const mentionMatch = userId.match(/<@!?(\d+)>/);
9898
const id = mentionMatch ? mentionMatch[1] : userId;
9999

100-
return message.guild.members.fetch(id).catch(() => null);
100+
return message.guild.members.cache.get(id) ?? null;
101101
},
102102
getChannel: (name) => {
103103
const channelId = options.getString(name);

0 commit comments

Comments
 (0)