Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
0-don committed Jan 27, 2025
1 parent 7b614db commit f430ca2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/messages/checkWarnings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export const checkWarnings = async (message: Message<boolean>) => {

if (
content.includes("discord.gg/") ||
content.includes("discordapp.com/") ||
content.includes("discordapp.com/invite/") ||
content.includes("discord.com/invite/")
) {
Expand All @@ -31,7 +32,7 @@ export const checkWarnings = async (message: Message<boolean>) => {
if (currentWarnings < 4) {
try {
await member.send(
`Stop posting invites, you have been warned. Warnings: ${currentWarnings}, you will be muted at 3 warnings.`,
`Stop posting invites, you have been warned. Warnings: ${currentWarnings}, you will be muted at 3 warnings.`
);
} catch (error) {}
} else {
Expand Down

0 comments on commit f430ca2

Please sign in to comment.