Merge branch 'main' into 'main'

Add check for user in quote post command

See merge request zyner/xyter/bot!1
This commit is contained in:
Axel Olausson Holtenäs 2023-09-26 07:46:13 +00:00
commit 87501c86dc

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