diff --git a/Bot/InviteTracker.fs b/Bot/InviteTracker.fs index 7a65a70..24d1f2f 100644 --- a/Bot/InviteTracker.fs +++ b/Bot/InviteTracker.fs @@ -123,6 +123,7 @@ let getInvitedUsers userId = let createGuildInvite (ctx : IDiscordContext) = task { do! ctx.Respond(InteractionResponseType.DeferredChannelMessageWithSource) + let channel = ctx.GetGuild().Channels.[GuildEnvironment.channelWelcome] let! invite = channel.CreateInviteAsync(max_age = 0, unique = true) @@ -150,12 +151,9 @@ let createGuildInvite (ctx : IDiscordContext) = do! ctx.FollowUp(msg) - let footer = - DiscordEmbedBuilder() - .WithDescription($"```https://discord.gg/{invite.Code}```") let msg = DiscordFollowupMessageBuilder() - .AddEmbed(footer.Build()) + .WithContent($"https://discord.gg/{invite.Code}") .AsEphemeral(true) do! ctx.FollowUp(msg)