Skip to content

Commit

Permalink
feat(createGuild): Make options parameter optional (#1476)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsian03 authored Jan 21, 2024
1 parent dcfee4c commit 43bf5e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Client.js
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ class Client extends EventEmitter {
/**
* Create a guild
* @arg {String} name The name of the guild
* @arg {Object} options The properties of the guild
* @arg {Object} [options] The properties of the guild
* @arg {String} [options.afkChannelID] The ID of the AFK voice channel
* @arg {Number} [options.afkTimeout] The AFK timeout in seconds
* @arg {Array<Object>} [options.channels] The new channels of the guild. IDs are placeholders which allow use of category channels.
Expand All @@ -717,7 +717,7 @@ class Client extends EventEmitter {
* @arg {Number} [options.verificationLevel] The guild verification level
* @returns {Promise<Guild>}
*/
createGuild(name, options) {
createGuild(name, options = {}) {
if(this.guilds.size > 9) {
throw new Error("This method can't be used when in 10 or more guilds.");
}
Expand Down

0 comments on commit 43bf5e9

Please sign in to comment.