Use same recruited embed
This commit is contained in:
parent
e645b2fabd
commit
0e77c26b82
@ -17,7 +17,7 @@ type AdminBot() =
|
||||
|
||||
[<SlashCommand("admin-invites", "Get total invites from a specific user")>]
|
||||
member this.GetAttributions (ctx : InteractionContext, [<Option("player", "The player you want to check")>] user : DiscordUser) =
|
||||
enforceAdmin (DiscordInteractionContext ctx) (InviteTracker.getAttributions user.Id)
|
||||
enforceAdmin (DiscordInteractionContext ctx) (InviteTracker.getInvitedUsersForId)
|
||||
|
||||
[<SlashCommand("admin-whitelist-stock", "Set whitelist stock")>]
|
||||
member this.SetStock (ctx : InteractionContext, [<Option("amount", "Set the amount of WL available for purchase")>] amount : int64) =
|
||||
|
@ -242,7 +242,8 @@ let getAttributions userId (ctx : IDiscordContext) =
|
||||
do! ctx.Respond(InteractionResponseType.ChannelMessageWithSource, msg)
|
||||
} :> Task
|
||||
|
||||
let private getInvitedUsersForId (ctx : IDiscordContext) = task {
|
||||
let getInvitedUsersForId (ctx : IDiscordContext) =
|
||||
task {
|
||||
let! users = getInvitedUsers (ctx.GetDiscordMember().Id)
|
||||
let! total = getInvitedUserCount (ctx.GetDiscordMember().Id)
|
||||
let sb = StringBuilder()
|
||||
@ -263,7 +264,7 @@ let private getInvitedUsersForId (ctx : IDiscordContext) = task {
|
||||
let user = ctx.GetDiscordMember()
|
||||
let channel = ctx.GetChannel()
|
||||
do! Analytics.recruitedCommand total user.Id user.Username channel
|
||||
}
|
||||
} :> Task
|
||||
|
||||
let clearInvites (ctx : IDiscordContext) = task {
|
||||
let! invites = ctx.GetGuild().GetInvitesAsync()
|
||||
|
Loading…
x
Reference in New Issue
Block a user