public async Task Create([Summary("The name of the raid")] string raidName, [Summary("The time of the raid")] string raidTime, [Summary("The name or id of the raid boss")] string raidBoss, [Summary("The number of guests to add to the leader (if autojoin is set to on)")] int guests = 0) { var user = Context.User as IGuildUser; if (await CheckPermission(user, _serverPermissions)) { var result = await _raidService.CreateRaid(raidName, raidTime, raidBoss, Context.User, guests, false); if (result.Success) { await ReplyAsync("", false, result.RequesterUserBuilder.Build()); } else { var dmChannel = await Context.User.GetOrCreateDMChannelAsync(); await dmChannel.SendMessageAsync("", false, result.RequesterUserBuilder.Build()); } } }
public async Task Create( [Summary("The name of the raid")] string raidName) { var user = Context.User as IGuildUser; if (await CheckPermission(user, _serverPermissions)) { var result = _raidService.CreateRaid(raidName, Context.User); if (result.Success) { await ReplyAsync("", false, result.RequesterUserBuilder.Build()); } else { var dmChannel = await Context.User.GetOrCreateDMChannelAsync(); await dmChannel.SendMessageAsync("", false, result.RequesterUserBuilder.Build()); } } }