Beispiel #1
0
 public async Task ShowGuildInfoAsync()
 {
     var guild   = _entityConvertor.ConvertGuild(Context.Guild);
     var channel = _entityConvertor.ConvertChannel(Context.Channel as SocketGuildChannel);
     await _profileService.ShowGuildProfileAsync(guild, channel);
 }
Beispiel #2
0
        public Task <MiunieGuild> FromAsync(MiunieUser user)
        {
            var guild = _discord.Client.GetGuild(user.GuildId);

            return(Task.FromResult(_entityConvertor.ConvertGuild(guild)));
        }
Beispiel #3
0
 public async Task ShowGuildInfoAsync(CommandContext ctx)
 {
     var guild   = _entityConvertor.ConvertGuild(ctx.Guild);
     var channel = _entityConvertor.ConvertChannel(ctx.Channel);
     await _profileService.ShowGuildProfileAsync(guild, channel);
 }
Beispiel #4
0
        public async Task <MiunieGuild> FromAsync(MiunieUser user)
        {
            var guild = await _discordClient.GetGuildAsync(user.GuildId);

            return(_entityConvertor.ConvertGuild(guild));
        }