This commit is contained in:
Qais Patankar
2020-02-07 14:26:23 +00:00
parent 1763238891
commit d511be22c4

View File

@@ -126,7 +126,7 @@ func (b *Bdiscord) Connect() error {
} else {
b.canEditWebhooks = true
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)
perms, permsErr := b.c.State.UserChannelPermissions(userinfo.ID, id)
manageWebhooks := discordgo.PermissionManageWebhooks