Skip to content

Commit

Permalink
fix(notifier): guild id resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiTenno committed Oct 20, 2020
1 parent 71753cb commit e764289
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/notifications/Broadcaster.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Broadcaster {
}

const guild = Object.entries(guilds)
.filter(([, g]) => g.channels.includes(result.channelId))[0];
.filter(([, g]) => g.channels.includes(result.channelId))[0][1];
try {
const prepend = await this.settings.getPing(guild, (items || []).concat([type]));
if (!embed.embeds) {
Expand Down

0 comments on commit e764289

Please sign in to comment.