Shouldn't need this
This commit is contained in:
		
							parent
							
								
									05291c2dbc
								
							
						
					
					
						commit
						c95f6c642d
					
				| @ -275,13 +275,6 @@ type AdminBot() = | ||||
|         else | ||||
|             Messaging.sendSimpleResponse ctx $"You are not admin" |> Async.StartAsTask :> Task | ||||
| 
 | ||||
|     let enforceMod  (ctx : IDiscordContext) (modFn : IDiscordContext -> Task) = | ||||
|         let isMod = Seq.exists (fun (role : DiscordRole) -> role.Id = 941379834163109978uL) (ctx.GetDiscordMember().Roles) | ||||
|         if isMod then | ||||
|             modFn ctx | ||||
|         else | ||||
|             Messaging.sendSimpleResponse ctx $"You are not a mod" |> Async.StartAsTask :> Task | ||||
| 
 | ||||
|     [<SlashCommandPermissions(Permissions.Administrator)>] | ||||
|     [<SlashCommand("admin-invites", "Get total invites from a specific user", false)>] | ||||
|     member this.GetAttributions (ctx : InteractionContext, [<Option("player", "The player you want to check")>] user : DiscordUser) = | ||||
| @ -324,7 +317,7 @@ type AdminBot() = | ||||
|     member this.ResstockMerris (ctx : InteractionContext, | ||||
|                                   [<Option("item-id", "Which item to restock")>] itemId : MerrisItem, | ||||
|                                   [<Option("amount", "How much to restock by")>] amount : int64) = | ||||
|         enforceAdmin (DiscordInteractionContext ctx) (restockMerris itemId (int amount)) | ||||
|         restockMerris itemId (int amount) (DiscordInteractionContext ctx) | ||||
| 
 | ||||
| //    [<SlashCommand("admin-raffles-toggle", "Toggle availability of an item")>] | ||||
| //    member this.ToggleRaffle (ctx : InteractionContext, [<Option("enabled", "Enable or Disable?")>] enable : EnableDisable) = | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user