Skip to content

Commit

Permalink
fix(docs): editStatus url type (#1337)
Browse files Browse the repository at this point in the history
  • Loading branch information
DonovanDMC authored Feb 10, 2022
1 parent c6b380b commit f4db90e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -1848,8 +1848,7 @@ class Client extends EventEmitter {
* @arg {Array | Object} [activities] Sets the bot's activities. A single activity object is also accepted for backwards compatibility
* @arg {String} activities[].name The name of the activity
* @arg {Number} activities[].type The type of the activity. 0 is playing, 1 is streaming (Twitch only), 2 is listening, 3 is watching, 5 is competing in
* @arg {Number} [activities[].url] The URL of the activity
* @arg {String} [game.url] Sets the url of the shard's active game
* @arg {String} [activities[].url] The URL of the activity
*/
editStatus(status, activities) {
if(activities === undefined && typeof status === "object") {
Expand Down
2 changes: 1 addition & 1 deletion lib/gateway/Shard.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ class Shard extends EventEmitter {
* @arg {Array | Object} [activities] Sets the bot's activities. A single activity object is also accepted for backwards compatibility
* @arg {String} activities[].name The name of the activity
* @arg {Number} activities[].type The type of the activity. 0 is playing, 1 is streaming (Twitch only), 2 is listening, 3 is watching, 5 is competing in
* @arg {Number} [activities[].url] The URL of the activity
* @arg {String} [activities[].url] The URL of the activity
*/
editStatus(status, activities) {
if(activities === undefined && typeof status === "object") {
Expand Down

0 comments on commit f4db90e

Please sign in to comment.