示例#1
0
        async Task RemoveThisGuildsJobConfigs(SocketGuild arg)
        {
            var textChannelIds = arg.TextChannels.Select(s => Convert.ToDecimal(s.Id));

            foreach (var id in textChannelIds)
            {
                await _FunctionWrapper.DeleteJobConfigAsync(id);
            }
        }
示例#2
0
        public async Task Off()
        {
            await _FunctionWrapper.DeleteJobConfigAsync(Context.Channel.Id);

            await TryReplyAsync("Done.");
        }