This commit is contained in:
Tabby 2025-11-02 13:24:43 +11:00
parent 514d68adbf
commit 788633c014
12 changed files with 89 additions and 14 deletions

17
Tools.gd Normal file
View file

@ -0,0 +1,17 @@
extends Node
const technician_role_id : String = "692291233627897876"
func check_perms(interaction : DiscordInteraction) -> bool:
print(interaction.member.roles)
for role : String in interaction.member.roles:
if role == technician_role_id:
return true
#havent found the role, sending error
interaction.reply({
"content" : "sorry! only users with the `technician` role can use this command",
"ephemeral" : true
})
return false