3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-06-09 00:25:03 +00:00

update for discord.js

This commit is contained in:
almeidx 2021-08-14 14:54:18 +01:00
parent ac67342e43
commit b38eeeab42
No known key found for this signature in database
GPG key ID: 8558FBFF849BD664
2 changed files with 9 additions and 7 deletions

View file

@ -51,14 +51,14 @@ export const RoleRemoveCmd = selfGrantableRolesCmd({
msg.channel,
`<@!${msg.author.id}> Removed ${removedRolesStr.join(", ")} ${removedRolesWord};` +
` couldn't recognize the other roles you mentioned`,
{ users: true },
{ users: [msg.author.id] },
);
} else {
sendSuccessMessage(
pluginData,
msg.channel,
`<@!${msg.author.id}> Removed ${removedRolesStr.join(", ")} ${removedRolesWord}`,
{ users: true },
{ users: [msg.author.id] },
);
}
} catch {
@ -66,7 +66,7 @@ export const RoleRemoveCmd = selfGrantableRolesCmd({
pluginData,
msg.channel,
`<@!${msg.author.id}> Got an error while trying to remove the roles`,
{ users: true },
{ users: [msg.author.id] },
);
}
} else {
@ -74,7 +74,7 @@ export const RoleRemoveCmd = selfGrantableRolesCmd({
pluginData,
msg.channel,
`<@!${msg.author.id}> Unknown ${args.roleNames.length === 1 ? "role" : "roles"}`,
{ users: true },
{ users: [msg.author.id] },
);
}