Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Command("info"), Summary("Displays the bot information")]
- public async Task InfoCommand()
- {
- EmbedBuilder embed = new EmbedBuilder();
- embed.AddInlineField("Name", Context.Client.CurrentUser.Username);
- embed.AddInlineField("Uptime", GetUptime());
- embed.AddInlineField("Servers", Context.Client.GetGuildsAsync().Result.Count);
- embed.ThumbnailUrl = Context.Client.CurrentUser.GetAvatarUrl();
- EmbedFooterBuilder footer = new EmbedFooterBuilder();
- footer.Text = Context.Client.CurrentUser.Username;
- embed.WithFooter(footer);
- embed.WithColor(new Color(17, 221, 112));
- await ReplyAsync("", false, embed.Build());
- }
- [Command("userinfo"), Summary("Displays user information"), Alias("uinfo")]
- public async Task GetUserInfo()
- {
- EmbedBuilder embed = new EmbedBuilder();
- embed.AddInlineField("Name", Context.User.Username);
- embed.AddInlineField("Discrim", Context.User.Discriminator);
- embed.AddInlineField("Account Created", Context.User.CreatedAt);
- embed.AddInlineField("Game", Context.User.Game);
- embed.AddInlineField("Status", Context.User.Status);
- embed.AddInlineField("Bot", Context.User.IsBot);
- embed.AddInlineField("ID", Context.User.Id);
- embed.WithThumbnailUrl(Context.User.GetAvatarUrl());
- EmbedFooterBuilder footer = new EmbedFooterBuilder();
- footer.Text = Context.Client.CurrentUser.Username;
- embed.WithColor(new Color(206, 229, 217));
- embed.WithFooter(footer);
- await ReplyAsync("", false, embed.Build());
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement