Skip to content

Commit

Permalink
Update GuildEventScheduleService.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Twinki14 committed Nov 14, 2023
1 parent 3d1e784 commit 86039bb
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/Miha.Discord/Services/Hosted/GuildEventScheduleService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,20 @@ private async Task PostWeeklyScheduleAsync()
location = "Discord";
}

builder.AppendLine($"- [{location}]({url})");
builder.AppendLine($"- [{location} - {guildEvent.Name}]({url})");
builder.AppendLine($" - {guildEvent.StartTime.ToDiscordTimestamp(TimestampTagStyles.ShortTime)} - {guildEvent.StartTime.ToDiscordTimestamp(TimestampTagStyles.Relative)}");

if (guildEvent.Creator is not null)
{
builder.AppendLine($" - Hosted by {guildEvent.Creator.Mention}");
}
}

await weeklyScheduleChannel.SendMessageAsync(builder.ToString());
var embed = new EmbedBuilder()
.WithColor(Color.Purple)
.WithDescription(builder.ToString());

await weeklyScheduleChannel.SendMessageAsync(embed: embed.Build());

/*### Monday - <t:1699132740:d>
- [Discord - Lord of the Rings: Fellowship of the Ring - 20th Anniversary viewing!](https://discord.gg/VqqEgBTe?event=1170558838718603284)
Expand Down

0 comments on commit 86039bb

Please sign in to comment.