Show green color with OK embed responses
This commit is contained in:
parent
fff834f9db
commit
2099a0266a
@ -1,4 +1,5 @@
|
||||
using Discord;
|
||||
using Discord.API;
|
||||
using Discord.Commands;
|
||||
using NadekoBot.Attributes;
|
||||
using NadekoBot.Extensions;
|
||||
@ -63,7 +64,8 @@ namespace NadekoBot.Modules.Searches
|
||||
Name = "Genres",
|
||||
Value = String.Join(", ", animeData.Genres)
|
||||
}
|
||||
}
|
||||
},
|
||||
Color = NadekoBot.OkColor
|
||||
};
|
||||
await channel.EmbedAsync(embed).ConfigureAwait(false);
|
||||
}
|
||||
@ -104,7 +106,8 @@ namespace NadekoBot.Modules.Searches
|
||||
Name = "Genres",
|
||||
Value = String.Join(", ", animeData.Genres)
|
||||
}
|
||||
}
|
||||
},
|
||||
Color = NadekoBot.OkColor
|
||||
};
|
||||
|
||||
await channel.EmbedAsync(embed).ConfigureAwait(false);
|
||||
|
@ -52,7 +52,8 @@ namespace NadekoBot.Modules.Searches
|
||||
.AddField(fb => fb.WithName("🌡 Temperature").WithValue($"{obj["centigrade"]}°C / {obj["fahrenheit"]}°F").WithIsInline(true))
|
||||
.AddField(fb => fb.WithName("🔆 Feels like").WithValue($"{obj["feelscentigrade"]}°C / {obj["feelsfahrenheit"]}°F").WithIsInline(true))
|
||||
.AddField(fb => fb.WithName("🌄 Sunrise").WithValue($"{obj["sunrise"]}").WithIsInline(true))
|
||||
.AddField(fb => fb.WithName("🌇 Sunset").WithValue($"{obj["sunset"]}").WithIsInline(true));
|
||||
.AddField(fb => fb.WithName("🌇 Sunset").WithValue($"{obj["sunset"]}").WithIsInline(true))
|
||||
.WithColor(NadekoBot.OkColor);
|
||||
await channel.EmbedAsync(embed.Build()).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
|
@ -23,6 +23,9 @@ namespace NadekoBot
|
||||
public class NadekoBot
|
||||
{
|
||||
private Logger _log;
|
||||
|
||||
public static uint OkColor { get; } = 0x00ff00;
|
||||
public static uint ErrorColor { get; } = 0xff0000;
|
||||
|
||||
public static CommandService CommandService { get; private set; }
|
||||
public static CommandHandler CommandHandler { get; private set; }
|
||||
|
@ -1,4 +1,5 @@
|
||||
using Discord;
|
||||
using Discord.API;
|
||||
using Discord.WebSocket;
|
||||
using ImageSharp;
|
||||
using Newtonsoft.Json;
|
||||
|
Loading…
Reference in New Issue
Block a user