mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 20:35: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
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue