public async Task ServerInfoCommand() { DiscordContext.Server server = await servers.GetServer(Context.Guild.Id); await ReplyAsync(embed : new CommandServerInfoEmbed(server, Context.Guild).Build()); logger.LogInformation($"{Context.User.GetCompleteUserTag()} executed the serverinfo command"); }
public CommandServerInfoEmbed(DiscordContext.Server server, SocketGuild guild) { ThumbnailUrl = guild.IconUrl; Color = global::Discord.Color.Blue; AddField("Members", guild.MemberCount); AddField("Online Members", guild.Users.Where(u => u.Status != UserStatus.Offline).Count()); AddField("Subscribed at", "// GET WALLET CREATION DATE"); AddField("Ad channel", server.AdChannelMention); WithCurrentTimestamp(); }