diff --git a/src/commands/quotes/subcommands/post/index.ts b/src/commands/quotes/subcommands/post/index.ts index 8ecb944..644ac84 100644 --- a/src/commands/quotes/subcommands/post/index.ts +++ b/src/commands/quotes/subcommands/post/index.ts @@ -43,6 +43,8 @@ export const execute = async ( const quoteUser = options.getUser("user", true); const quoteString = options.getString("message", true); + if (quoteUser.id == user.id) throw new Error("One cannot quote oneself."); + await upsertGuildMember(guild, user); await upsertGuildMember(guild, quoteUser);