Skip to content

Commit

Permalink
Update banshare.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
IThundxr authored Jan 7, 2024
1 parent 6942a46 commit 074d865
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/webserver/banshare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,13 @@ const handleBan = async (client: Client, req: Request) => {

const guild = client.guilds.cache.get(process.env.SERVER_ID);
const guildMember = await guild?.members.fetch(userId);
const present = guildMember !== undefined;

const embed = new EmbedBuilder()
.setTitle(`Incoming ban from ${server}`)
.addFields(
{ name: 'User', value: `<@!${user.id}>` },
{ name: 'Username', value: user.username },
{ name: 'User ID', value: user.id },
{ name: 'Present in server', value: `${present}` },
{ name: 'Reason', value: reason },
{ name: 'Banned From', value: server }
)
Expand Down

0 comments on commit 074d865

Please sign in to comment.