Skip to content

Commit

Permalink
fix reference error
Browse files Browse the repository at this point in the history
  • Loading branch information
curtisf committed Apr 3, 2019
1 parent 8340b1d commit 72ac0c6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/bot/bases/GuildSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,13 @@ class GuildSettings {
return this.event_logs[name]
}

getEventLogNames (channelID) {
eventLogByNames (channelID) {
return Object.keys(this.event_logs).filter(event => this.event_logs[event] === channelID)
}

clearEventByID (id) {
getEventLogNames(id).forEach(name => {
const events = this.eventLogByNames(id)
events.forEach(name => {
this.event_logs[name] = ''
})
}
Expand Down

0 comments on commit 72ac0c6

Please sign in to comment.