Skip to content

Commit

Permalink
fixed emojis in the fleet vote message
Browse files Browse the repository at this point in the history
  • Loading branch information
denis-karev committed Dec 28, 2020
1 parent aaeb3bd commit 29e6be5
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions Bot_NetCore/Commands/UtilsCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,16 @@ public async Task CreateFleetPoll(CommandContext ctx)
{
await ctx.Message.DeleteAsync();

var emojis = new DiscordEmoji[]
{
DiscordEmoji.FromName(ctx.Client, ":one:"),
DiscordEmoji.FromName(ctx.Client, ":two:"),
DiscordEmoji.FromName(ctx.Client, ":three:"),
DiscordEmoji.FromName(ctx.Client, ":black_small_square:"),
DiscordEmoji.FromGuildEmote(ctx.Client, Bot.BotSettings.BrigEmoji),
DiscordEmoji.FromGuildEmote(ctx.Client, Bot.BotSettings.GalleonEmoji)
};

var embed = new DiscordEmbedBuilder()
.WithTitle("Голосование за следующий рейд")
.WithDescription("Оставьте реакцию под этим сообщением за тот тип рейда который хотите чтобы **завтра** был у нас на сервере.\n\n" +
Expand All @@ -318,21 +328,11 @@ public async Task CreateFleetPoll(CommandContext ctx)
.WithThumbnail("https://cdn.discordapp.com/attachments/772989975301324890/772990308052107284/RAID.gif")
.WithTimestamp(DateTime.Now)
.WithFooter("‎\nПо результатам голосования капитаны смогут подобрать рейд")
.AddField("Тип Рейда:", "\n:one: **Эмиссарский**\n:two: **ФОТД** \n:three: **Меги**", true)
.AddField("Тип Корабля:", "‎\n<:brig:791712089692962848> **Brigantine**\n<:galleon:791712089974374420> **Galleon**", true);
.AddField("Тип Рейда:", "\n:one: **Эмиссарский**\n:two: **ФОТД** \n:three: **Меги**", true)
.AddField("Тип Корабля:", $"\n{emojis[4]} **Brigantine**\n{emojis[5]} **Galleon**", true);

var msg = await ctx.RespondAsync(embed: embed.Build());

var emojis = new DiscordEmoji[]
{
DiscordEmoji.FromName(ctx.Client, ":one:"),
DiscordEmoji.FromName(ctx.Client, ":two:"),
DiscordEmoji.FromName(ctx.Client, ":three:"),
DiscordEmoji.FromName(ctx.Client, ":black_small_square:"),
DiscordEmoji.FromGuildEmote(ctx.Client, Bot.BotSettings.BrigEmoji),
DiscordEmoji.FromGuildEmote(ctx.Client, Bot.BotSettings.GalleonEmoji)
};

foreach (var emoji in emojis)
{
await msg.CreateReactionAsync(emoji);
Expand Down

0 comments on commit 29e6be5

Please sign in to comment.