Skip to content

Commit

Permalink
chore: fix grammar in error message (#123)
Browse files Browse the repository at this point in the history
Peter-MJ-Parker authored Oct 13, 2023
1 parent 9045e1a commit 3970cc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/create-publish.mts
Original file line number Diff line number Diff line change
@@ -193,7 +193,7 @@ if (res.ok) {
spin.fail(`Failed to publish global commands [Code: ${redBright(res.status)}]`);
switch(res.status) {
case 400 :
throw Error("400: Ensure your commands have proper fields and data with left nothing out");
throw Error("400: Ensure your commands have proper fields and data with nothing left out");
case 404 :
throw Error("Forbidden 404. Is you application id and/or token correct?")
case 429:
@@ -247,7 +247,7 @@ for (const [guildId, array] of guildCommandMap.entries()) {
spin.fail(`[${redBright(guildId)}] Failed to update commands for guild, Reason: ${result.message}`);
switch(response.status) {
case 400 :
throw Error("400: Ensure your commands have proper fields and data and left nothing out");
throw Error("400: Ensure your commands have proper fields and data and nothing left out");
case 404 :
throw Error("Forbidden 404. Is you application id and/or token correct?")
case 429:

0 comments on commit 3970cc6

Please sign in to comment.