3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

Fix some argument type names

This commit is contained in:
Dragory 2019-04-20 19:55:35 +03:00
parent 51a77b0082
commit 9f7f87dc77
5 changed files with 8 additions and 8 deletions

View file

@ -46,7 +46,7 @@ export class AutoReactionsPlugin extends ZeppelinPlugin<IAutoReactionsPluginConf
this.savedMessages.events.off("create", this.onMessageCreateFn);
}
@d.command("auto_reactions", "<channelId:channelId> <reactions...>")
@d.command("auto_reactions", "<channelId:channelid> <reactions...>")
@d.permission("use")
async setAutoReactionsCmd(msg: Message, args: { channelId: string; reactions: string[] }) {
const finalReactions = [];
@ -80,7 +80,7 @@ export class AutoReactionsPlugin extends ZeppelinPlugin<IAutoReactionsPluginConf
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("use")
async disableAutoReactionsCmd(msg: Message, args: { channelId: string }) {
const autoReaction = await this.autoReactions.getForChannel(args.channelId);

View file

@ -35,7 +35,7 @@ export class NameHistoryPlugin extends ZeppelinPlugin<INameHistoryPluginConfig>
this.nameHistory = GuildNameHistory.getInstance(this.guildId);
}
@d.command("names", "<userId:userId>")
@d.command("names", "<userId:userid>")
@d.permission("can_view")
async namesCmd(msg: Message, args: { userId: string }) {
const names = await this.nameHistory.getByUserId(args.userId);

View file

@ -50,7 +50,7 @@ export class PingableRolesPlugin extends ZeppelinPlugin<IPingableRolesPluginConf
return this.cache.get(channelId);
}
@d.command("pingable_role disable", "<channelId:channelId> <role:role>")
@d.command("pingable_role disable", "<channelId:channelid> <role:role>")
@d.permission("can_manage")
async disablePingableRoleCmd(msg: Message, args: { channelId: string; role: Role }) {
const pingableRole = await this.pingableRoles.getByChannelAndRoleId(args.channelId, args.role.id);
@ -67,7 +67,7 @@ export class PingableRolesPlugin extends ZeppelinPlugin<IPingableRolesPluginConf
);
}
@d.command("pingable_role", "<channelId:channelId> <role:role>")
@d.command("pingable_role", "<channelId:channelid> <role:role>")
@d.permission("can_manage")
async setPingableRoleCmd(msg: Message, args: { channelId: string; role: Role }) {
const existingPingableRole = await this.pingableRoles.getByChannelAndRoleId(args.channelId, args.role.id);

View file

@ -166,7 +166,7 @@ export class SlowmodePlugin extends ZeppelinPlugin<ISlowmodePluginConfig> {
/**
* COMMAND: Clear slowmode from a specific user on a specific channel
*/
@d.command("slowmode clear", "<channel:channel> <user:user>")
@d.command("slowmode clear", "<channel:channel> <user:resolvedUserLoose>")
@d.permission("can_manage")
async clearSlowmodeCmd(msg: Message, args: { channel: GuildChannel & TextChannel; user: User }) {
const channelSlowmode = await this.slowmodes.getChannelSlowmode(args.channel.id);

View file

@ -174,7 +174,7 @@ export class StarboardPlugin extends ZeppelinPlugin<IStarboardPluginConfig> {
/**
* Deletes the starboard from the specified channel. The already-posted starboard messages are retained.
*/
@d.command("starboard delete", "<channelId:channelId>")
@d.command("starboard delete", "<channelId:channelid>")
@d.permission("can_manage")
async deleteCmd(msg: Message, args: { channelId: string }) {
const starboard = await this.starboards.getStarboardByChannelId(args.channelId);
@ -333,7 +333,7 @@ export class StarboardPlugin extends ZeppelinPlugin<IStarboardPluginConfig> {
}
}
@d.command("starboard migrate_pins", "<pinChannelId:channelId> <starboardChannelId:channelId>")
@d.command("starboard migrate_pins", "<pinChannelId:channelid> <starboardChannelId:channelid>")
async migratePinsCmd(msg: Message, args: { pinChannelId: string; starboardChannelId }) {
const starboard = await this.starboards.getStarboardByChannelId(args.starboardChannelId);
if (!starboard) {