3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 04:25:01 +00:00

Add proper types to sendErrorMessage()

This commit is contained in:
Dragory 2021-01-17 21:21:18 +02:00
parent 6896afebfa
commit edaeb7ef0e
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1
23 changed files with 123 additions and 78 deletions

View file

@ -34,7 +34,8 @@ export const BanCmd = modActionsCmd({
async run({ pluginData, message: msg, args }) {
const user = await resolveUser(pluginData.client, args.user);
if (!user.id) {
return sendErrorMessage(pluginData, msg.channel, `User not found`);
sendErrorMessage(pluginData, msg.channel, `User not found`);
return;
}
const memberToBan = await resolveMember(pluginData.client, pluginData.guild, user.id);