🐛 amount 0 made not found
This commit is contained in:
parent
ce3369ba83
commit
7437fddd84
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ export default {
|
|||
|
||||
if (!guild) throw new Error("Guild not found");
|
||||
if (!optionUser) throw new Error("No receiver found");
|
||||
if (!optionAmount) throw new Error("Amount not found");
|
||||
if (optionAmount === null) throw new Error("Amount not found");
|
||||
|
||||
await transferCredits(guild, user, optionUser, optionAmount);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue