mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-07-08 03:27:20 +00:00
Fix userid/channelid argument types; rename userid/userID to userId for consistency; misc code style fix
This commit is contained in:
parent
afd677b270
commit
8d8343543d
6 changed files with 17 additions and 17 deletions
|
@ -53,7 +53,7 @@ export class PingableRolesPlugin extends ZeppelinPlugin<TConfigSchema> {
|
|||
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);
|
||||
|
@ -70,7 +70,7 @@ export class PingableRolesPlugin extends ZeppelinPlugin<TConfigSchema> {
|
|||
);
|
||||
}
|
||||
|
||||
@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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue