public async Task ShowGuildInfoAsync() { var guild = _entityConvertor.ConvertGuild(Context.Guild); var channel = _entityConvertor.ConvertChannel(Context.Channel as SocketGuildChannel); await _profileService.ShowGuildProfileAsync(guild, channel); }
public Task <MiunieGuild> FromAsync(MiunieUser user) { var guild = _discord.Client.GetGuild(user.GuildId); return(Task.FromResult(_entityConvertor.ConvertGuild(guild))); }
public async Task ShowGuildInfoAsync(CommandContext ctx) { var guild = _entityConvertor.ConvertGuild(ctx.Guild); var channel = _entityConvertor.ConvertChannel(ctx.Channel); await _profileService.ShowGuildProfileAsync(guild, channel); }
public async Task <MiunieGuild> FromAsync(MiunieUser user) { var guild = await _discordClient.GetGuildAsync(user.GuildId); return(_entityConvertor.ConvertGuild(guild)); }