Esempio n. 1
0
        public async Task Open()
        {
            if (_guildEntity is null ||
                !(Context.Channel is SocketTextChannel channel) ||
                _guildEntity.SupportRequestCategoryId == 0 ||
                channel.CategoryId != _guildEntity.SupportRequestCategoryId ||
                channel.Id == _guildEntity.SupportRequestChannelInfoId
                )
            {
                await Context.Message.DeleteAsync();

                return;
            }

            await _supportRequestHandler.ToggleClosedRequest(channel, Context.User, Context.User.Mention, false, true);
        }