Skip to content

Commit

Permalink
hardcode user id
Browse files Browse the repository at this point in the history
  • Loading branch information
dispherical committed Oct 19, 2024
1 parent fd8275e commit d3a2dd7
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions commands/setlocation.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ module.exports = async function ({ app, prisma }) {
const user = await app.client.users.info({
user: command.user_id,
});
if (!channelManagers.includes(command.user_id) && !user.user.is_admin)
if (
!channelManagers.includes(command.user_id) &&
!user.user.is_admin &&
command.user_id != "U04CBLNSVH6"
)
return await respond(
"Only channel managers and workspace admins can opt a user out.",
);
Expand Down Expand Up @@ -56,7 +60,11 @@ module.exports = async function ({ app, prisma }) {
lon,
},
});
else if (channelRecord.locked && !user.user.is_admin)
else if (
channelRecord.locked &&
!user.user.is_admin &&
command.user_id != "U04CBLNSVH6"
)
return await respond(
"This channel cannot be locked as it is locked in the database. Usually, this is because it is a public, community-owned channel, i.e. #lounge, #code, etc.",
);
Expand Down

0 comments on commit d3a2dd7

Please sign in to comment.