public async Task DestroyGang() { using (var db = new SQLite.Models.DbContext()) { var gangRepo = new GangRepository(db); var gang = await gangRepo.DestroyGangAsync(Context.User.Id, Context.Guild.Id); await ReplyAsync($"{Context.User.Mention}, You have successfully destroyed {gang.Name}."); } }
public async Task DestroyGang() { await _gangRepo.DestroyGangAsync(Context.GUser); await ReplyAsync($"You have successfully destroyed your gang."); }
public async Task DestroyGang() { var gang = await GangRepository.DestroyGangAsync(Context.User.Id, Context.Guild.Id); await ReplyAsync($"{Context.User.Mention}, You have successfully destroyed {gang.Name}."); }