示例#1
0
            private async Task EditRaid(string raidId, RaidEditConversation.Edits command)
            {
                if (_raidService.TryFindRaid(raidId, out Raid raid))
                {
                    if (!_conversationService.UserHasConversation(Context.User.Id))
                    {
                        IUserMessage userMessage = (IUserMessage)await Context.Guild.GetTextChannel(raid.ChannelId).GetMessageAsync(raid.MessageId);

                        _conversationService.OpenRaidEditConversation(_raidService, Context.User, raidId, command, userMessage);
                    }
                }
                else
                {
                    await Context.Channel.SendMessageAsync($"raid {raidId} not found");
                }
            }
示例#2
0
 public async void OpenRaidEditConversation(RaidService raidService, IUser user, string raidId, RaidEditConversation.Edits edit, IUserMessage userMessage)
 {
     _conversations.Add(user.Id, await RaidEditConversation.Create(this, raidService, user, raidId, edit, userMessage));
 }