mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
Add proper types to sendErrorMessage()
This commit is contained in:
parent
6896afebfa
commit
edaeb7ef0e
23 changed files with 123 additions and 78 deletions
|
@ -29,7 +29,8 @@ export const UnbanCmd = 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;
|
||||
}
|
||||
|
||||
// The moderator who did the action is the message author or, if used, the specified -mod
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue