Formatting

This commit is contained in:
Joseph Ferano 2022-03-03 15:58:25 +07:00
parent 25f3c0b89d
commit 24f56c046c
2 changed files with 15 additions and 11 deletions

View File

@ -251,7 +251,8 @@ let createInvite (ctx : IDiscordContext) =
let embed =
DiscordEmbedBuilder()
.WithDescription($"Send this invite to your friend, when they join, they can type the `/enter-code` slash command")
.WithDescription($"Send this invite to your friend, when they join, they can type the `/enter-code` slash command\n\n
```https://discord.gg/{invite.Code}```")
.WithImageUrl("https://pbs.twimg.com/profile_banners/1449270642340089856/1640071520/1500x500")
.WithTitle("Invite Code")

View File

@ -41,6 +41,7 @@ let createInvite inviter code =
|> Async.AwaitTask
let addInvitedUser did code =
try
connStr
|> Sql.connect
|> Sql.executeTransactionAsync [
@ -51,6 +52,8 @@ let addInvitedUser did code =
"UPDATE invite SET count = count + 1 WHERE code = @code" , [ [ "@code" , Sql.string code ] ]
]
|> Async.AwaitTask
|> Async.Ignore
with _ -> async.Zero ()
let getInviteAttributions userId =
connStr