cooking
This commit is contained in:
parent
514d68adbf
commit
788633c014
12 changed files with 89 additions and 14 deletions
17
Tools.gd
Normal file
17
Tools.gd
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue