Skip to content

Commit

Permalink
g
Browse files Browse the repository at this point in the history
  • Loading branch information
shockbs committed Apr 23, 2024
1 parent ca51305 commit d4bb976
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ function ShockBS(client/*:Client*/, channelId/*:string*/ ,options/*: CuteOptions
if (options.question.length > 300) {
options.question = options.question.substr(0,299) + "…";
}
if (typeof options.duration !== ("number"||"string")) {
throw new Error("duration must be provided as a number or string");
}

const emojis = [];
if (typeof options.duration === "string") {
options.duration = parseDuration(options.duration);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "pollcord",
"description": "Send and use the new Discord poll feauture with discord.js",
"package-name": "pollcord",
"version": "0.0.122",
"version": "0.0.123",
"author": "shockbs",
"license": "CC-BY-NC 4.0",
"exports": {
Expand Down

0 comments on commit d4bb976

Please sign in to comment.