add note
This commit is contained in:
@@ -126,7 +126,7 @@ func (b *Bdiscord) Connect() error {
|
|||||||
} else {
|
} else {
|
||||||
b.canEditWebhooks = true
|
b.canEditWebhooks = true
|
||||||
for _, info := range b.Channels {
|
for _, info := range b.Channels {
|
||||||
id := b.getChannelID(info.Name)
|
id := b.getChannelID(info.Name) // note(qaisjp): this readlocks channelsMutex
|
||||||
b.Log.Debugf("Verifying PermissionManageWebhooks for %s with ID %s", info.ID, id)
|
b.Log.Debugf("Verifying PermissionManageWebhooks for %s with ID %s", info.ID, id)
|
||||||
perms, permsErr := b.c.State.UserChannelPermissions(userinfo.ID, id)
|
perms, permsErr := b.c.State.UserChannelPermissions(userinfo.ID, id)
|
||||||
manageWebhooks := discordgo.PermissionManageWebhooks
|
manageWebhooks := discordgo.PermissionManageWebhooks
|
||||||
|
|||||||
Reference in New Issue
Block a user