Skip to content

Commit

Permalink
[modulepermissions] adds api fallback for member requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Seklfreak committed Jan 3, 2018
1 parent 35fc8fb commit e95a60b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers/modulepermissions.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func ModuleIsAllowedSilent(channelID, msgID, userID string, module models.Module
return true
}

user, err := GetGuildMemberWithoutApi(channel.GuildID, userID)
user, err := GetGuildMember(channel.GuildID, userID)
if err != nil {
cache.GetLogger().WithField("module", "modulepermissions").Errorf(
"failed to get guild member for ModuleIsAllowedSilent message #%s channel #%s user #%s module %s: %s",
Expand Down

0 comments on commit e95a60b

Please sign in to comment.