Fix not ephemeral

This commit is contained in:
Joseph Ferano 2022-03-22 21:13:04 +07:00
parent c10331b548
commit 6f88df1953

View File

@ -122,7 +122,8 @@ let getInvitedUsers userId =
let createGuildInvite (ctx : IDiscordContext) =
task {
do! ctx.Respond(InteractionResponseType.DeferredChannelMessageWithSource)
let builder = DiscordInteractionResponseBuilder().AsEphemeral(true)
do! ctx.Respond(InteractionResponseType.DeferredChannelMessageWithSource, builder)
let channel = ctx.GetGuild().Channels.[GuildEnvironment.channelWelcome]
let! invite = channel.CreateInviteAsync(max_age = 0, unique = true)
@ -141,7 +142,6 @@ let createGuildInvite (ctx : IDiscordContext) =
.WithDescription($"**⏀ | Your Mission:**\nCopy the link & share it with Degenz you want to `/recruit`.\n\n" +
$"**⌼ | Your Reward:**\n`Earn {InviteRewardAmount} $GBT` 💰 for every Degen you've `/recruited`.")
.WithImageUrl("https://pbs.twimg.com/profile_banners/1449270642340089856/1640071520/1500x500")
// .WithImageUrl("https://s7.gifyu.com/images/Resistance_Poster_Final_1.jpg")
.WithTitle("Recruitment")
let msg =