コード例 #1
0
        public async Task RemoveStarBoardChannel()
        {
            if (!((SocketGuildUser)Context.User).GuildPermissions.Has(GuildPermission.ManageChannels))
            {
                await ReplyAsync(":no_entry_sign: You don't have permission to remove the starboard channel! You need Manage Channels permissions!");

                return;
            }
            await starBoardService.RemoveChannel(Context);
        }
コード例 #2
0
ファイル: OwnerModule.cs プロジェクト: JackSkellet/SoraBot
 public async Task RemoveStarBoardChannel()
 {
     await starBoardService.RemoveChannel(Context);
 }