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:
commit
87501c86dc
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue