#Making a command accessible only to the owner of the bot (defined as bot.owner_ids)

1 messages · Page 1 of 1 (latest)

covert barn
#

I want to only allow the user_id provided in the the creation of my interactions.Client. I saw in the docs that there was an @is_owner decorator, however when I used it, I got this error:

sys:1: RuntimeWarning: coroutine 'is_owner.<locals>.check' was never awaited
fossil gulchBOT
#

Hey! Once your issue is solved, press the button below to close this thread!

distant cairn
#

How did you add this decorator? It should be just above your command's callback

covert barn
#

ok i placed it in the wrong spot

#

😐