mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-07-08 03:27:20 +00:00
Added Discord attachment link reaction, fixed emoji configuration and moved util functions
This commit is contained in:
parent
a4c4b17a14
commit
592d037148
173 changed files with 1540 additions and 1170 deletions
|
@ -4,8 +4,8 @@ import { commandTypeHelpers as ct } from "../../../commandTypes";
|
|||
import { MAX_NICKNAME_ENTRIES_PER_USER } from "../../../data/GuildNicknameHistory";
|
||||
import { MAX_USERNAME_ENTRIES_PER_USER } from "../../../data/UsernameHistory";
|
||||
import { NICKNAME_RETENTION_PERIOD } from "../../../data/cleanup/nicknames";
|
||||
import { sendErrorMessage } from "../../../pluginUtils";
|
||||
import { DAYS, renderUserUsername } from "../../../utils";
|
||||
import { CommonPlugin } from "../../Common/CommonPlugin";
|
||||
import { nameHistoryCmd } from "../types";
|
||||
|
||||
export const NamesCmd = nameHistoryCmd({
|
||||
|
@ -21,7 +21,7 @@ export const NamesCmd = nameHistoryCmd({
|
|||
const usernames = await pluginData.state.usernameHistory.getByUserId(args.userId);
|
||||
|
||||
if (nicknames.length === 0 && usernames.length === 0) {
|
||||
sendErrorMessage(pluginData, msg.channel, "No name history found");
|
||||
pluginData.getPlugin(CommonPlugin).sendErrorMessage(msg, "No name history found");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue