Use link button for created event message (#158)

Signed-off-by: Macintosh II <mctaylxrs@outlook.com>
This commit is contained in:
Macintxsh 2023-10-11 22:16:52 +03:00 committed by GitHub
parent 8b659a6582
commit e21cefd79d
Signed by: GitHub
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 50 deletions

View file

@ -7,7 +7,6 @@ using Remora.Discord.API.Abstractions.Rest;
using Remora.Discord.API.Objects;
using Remora.Discord.Extensions.Embeds;
using Remora.Discord.Extensions.Formatting;
using Remora.Discord.Interactivity;
using Remora.Rest.Core;
using Remora.Results;
@ -217,11 +216,10 @@ public sealed class ScheduledEventUpdateService : BackgroundService
: string.Empty;
var button = new ButtonComponent(
ButtonComponentStyle.Primary,
ButtonComponentStyle.Link,
Messages.EventDetailsButton,
new PartialEmoji(Name: "📋"),
CustomIDHelpers.CreateButtonIDWithState(
"scheduled-event-details", $"{scheduledEvent.GuildID}:{scheduledEvent.ID}")
URL: $"https://discord.com/events/{scheduledEvent.GuildID}/{scheduledEvent.ID}"
);
return (Result)await _channelApi.CreateMessageAsync(