dev(test) Test only
This commit is contained in:
@@ -5,7 +5,7 @@ module.exports = (client, { d: data }) => {
|
||||
for (const command of data.application_commands) {
|
||||
const user = client.users.cache.get(command.application_id);
|
||||
if (!user || !user.bot) continue;
|
||||
user.applications._add(command, true);
|
||||
user.application?.commands?._add(command, true);
|
||||
}
|
||||
client.emit(Events.GUILD_APPLICATION_COMMANDS_UPDATE, data);
|
||||
};
|
||||
|
Reference in New Issue
Block a user