3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-18 07:35: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 afd677b270
commit 8d8343543d
6 changed files with 17 additions and 17 deletions

View file

@ -177,7 +177,7 @@ export class StarboardPlugin extends ZeppelinPlugin<TConfigSchema> {
/**
* 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);
@ -336,7 +336,7 @@ export class StarboardPlugin extends ZeppelinPlugin<TConfigSchema> {
}
}
@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) {