Add check for user in quote post command

This commit is contained in:
Elis Odenhage 2023-09-24 18:11:24 +00:00
parent f1f5513635
commit 2395167b89

View file

@ -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);