3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-21 16:55:03 +00:00

Add proper types to sendErrorMessage()

This commit is contained in:
Dragory 2021-01-17 21:21:18 +02:00
parent 21b09b3413
commit 621c8584fd
23 changed files with 123 additions and 78 deletions

View file

@ -20,7 +20,8 @@ export const NamesCmd = nameHistoryCmd({
const usernames = await pluginData.state.usernameHistory.getByUserId(args.userId);
if (nicknames.length === 0 && usernames.length === 0) {
return sendErrorMessage(pluginData, msg.channel, "No name history found");
sendErrorMessage(pluginData, msg.channel, "No name history found");
return;
}
const nicknameRows = nicknames.map(