#How add permissions to channel

1 messages · Page 1 of 1 (latest)

real sparrow
#

| instead of +

prime otter
#

how work this operator?

#

it append two permissions ?

real sparrow
#

Basically yeah

prime otter
#

okey

#

thanks

real sparrow
#

I'm on mobile but I can try to give an example

Permissions ex = Permissions.ManageWebhooks | Permissions.PrioritySpeaker | Permissions.MentionEveryone;
//remove PrioritySpeaker & Webhook permission from the ex variable
ex = ex & ~Permissions.ManageWebhooks & ~Permissions.PrioritySpeaker;