Skip to content

Commit

Permalink
fix inverted server selection
Browse files Browse the repository at this point in the history
  • Loading branch information
Techbot121 authored and Meta Construct committed May 17, 2024
1 parent 742648f commit 31a1d29
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/services/discord/modules/webhook-handler.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { DiscordBot } from "..";
import { GameBridge } from "../../gamebridge";
import { Webhooks, createNodeMiddleware } from "@octokit/webhooks";
import { clamp } from "@/utils";
import Discord from "discord.js";
Expand Down Expand Up @@ -113,7 +112,7 @@ export default (bot: DiscordBot): void => {
const [action, override] = ctx.customId.split("_");
const where =
override !== undefined
? bridge.servers.filter(s => override.split(",").indexOf(s.config.id.toString()))
? bridge.servers.filter(s => override.split(",").includes(s.config.id.toString()))
: bridge.servers;

const allowed = (<Discord.GuildMemberRoleManager>ctx.member.roles).cache.some(
Expand Down

0 comments on commit 31a1d29

Please sign in to comment.