3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-18 23:55:02 +00:00

Fix userid/channelid argument types; rename userid/userID to userId for consistency; misc code style fix

This commit is contained in:
Dragory 2019-08-10 01:47:45 +03:00
parent 5dbc37f8e3
commit 0b2d7bc124
6 changed files with 17 additions and 17 deletions

View file

@ -49,7 +49,7 @@ export class AutoReactionsPlugin extends ZeppelinPlugin<TConfigSchema> {
this.savedMessages.events.off("create", this.onMessageCreateFn);
}
@d.command("auto_reactions", "<channelId:channelid> <reactions...>")
@d.command("auto_reactions", "<channelId:channelId> <reactions...>")
@d.permission("can_manage")
async setAutoReactionsCmd(msg: Message, args: { channelId: string; reactions: string[] }) {
const finalReactions = [];
@ -83,7 +83,7 @@ export class AutoReactionsPlugin extends ZeppelinPlugin<TConfigSchema> {
msg.channel.createMessage(successMessage(`Auto-reactions set for <#${args.channelId}>`));
}
@d.command("auto_reactions disable", "<channelId:channelid>")
@d.command("auto_reactions disable", "<channelId:channelId>")
@d.permission("can_manage")
async disableAutoReactionsCmd(msg: Message, args: { channelId: string }) {
const autoReaction = await this.autoReactions.getForChannel(args.channelId);