#How make private button?

1 messages · Page 1 of 1 (latest)

dark crypt
#

In the buttons callback, just check if the role is in the user's roles

if role in member.roles:
    return```
#

No, button.disabled can't be user-specific
The best you can do is just not process anything when the incorrect user presses the button

#

Do you mean, like, detect when the channel is created and then make it into a log channel?

#

Oh I see

#

In that case you'd want to log the new channel ID in some sort of database, then, in an on_message event, check if a message is in the correct channel and forward the message to the logging channel

#

No problem!

dim reefBOT
#

This thread was archived by a staff member.