示例#1
0
        public async Task _ReactChannelAdd()
        {
            List <ulong> adminIds = await SaveSystem.GetAdminIds();

            if (adminIds.Contains(Context.User.Id) || adminIds.Count == 0)
            {
                List <ulong> reactChannels = await SaveSystem.GetReactChannel();

                if (!reactChannels.Contains(Context.Channel.Id))
                {
                    await SaveSystem.AddReactChannel(Context.Channel.Id);

                    await ClientConsole.Log(new TargetedCommandMessage("AddReactChannel", Context, Context.Channel));

                    await Context.Channel.SendMessageAsync("Starting reactions in this channel");
                }
            }
            await Context.Message.DeleteAsync();
        }