diff --git a/README.md b/README.md index bce6ed97..345d5e5d 100644 --- a/README.md +++ b/README.md @@ -343,7 +343,7 @@ You can also pass a `messages` parameter for `start()` function, if you want to - **options.messages.timeRemaining**: the message that displays the remaining time (the timer). - **options.messages.inviteToParticipate**: the message that invites users to participate. - **options.messages.winMessage**: the message that will be displayed to congratulate the winner(s) when the giveaway is ended. -- **options.messages.embedFooter**: the message displayed at the bottom of the embeds. +- **options.messages.embedFooter**: the message displayed at the bottom of the embeds. [Can be deactivated and iconURL can be set](https://discord-giveaways.js.org/global.html#EmbedFooterObject). - **options.messages.noWinner**: the message that is displayed if no winner can be drawn. - **options.messages.winners**: simply the word "winner" in your language. - **options.messages.endedAt**: simply the words "Ended at" in your language. diff --git a/src/Constants.js b/src/Constants.js index b9f14026..9a9571e9 100644 --- a/src/Constants.js +++ b/src/Constants.js @@ -9,7 +9,7 @@ const Discord = require('discord.js'); * @property {string} [inviteToParticipate='React with 🎉 to participate!'] Displayed in the giveaway embed. Invite people to react to the giveaway. * @property {string} [timeRemaining='Time remaining: **{duration}**'] Displayed below "inviteToParticipate" in the giveaway embed. "{duration}" will be replaced automatically with the time remaining. * @property {string} [winMessage='Congratulations, {winners}! You won **{prize}**!\n{messageURL}'] Sent in the channel when the giveaway is ended. - * @property {string|embedFooterObject} [embedFooter='Powered by the discord-giveaways package'] The footer of the giveaway embed. + * @property {string|EmbedFooterObject} [embedFooter='Powered by the discord-giveaways package'] The footer of the giveaway embed. * @property {string} [noWinner='Giveaway cancelled, no valid participations.'] Sent in the channel if there is no valid winner for the giveaway. * @property {string} [winners='winner(s)'] Displayed next to the embed footer, used to display the number of winners of the giveaways. * @property {string} [endedAt='Ended at'] Displayed next to the embed footer, used to display the giveaway end date. @@ -44,9 +44,9 @@ exports.GiveawayMessages = { /** * Embed Footer object. - * @typedef embedFooterObject + * @typedef EmbedFooterObject * - * @property {string} [text] The text of the footer. If the value is a empty string then embedFooter will not show up in the giveaway embed. + * @property {string} [text] The text of the footer. If the value is a empty string then "embedFooter" will not show up in the giveaway embed. * @property {string} [iconURL] The icon URL of the footer. */ diff --git a/src/Manager.js b/src/Manager.js index 4929a793..c7df5fff 100644 --- a/src/Manager.js +++ b/src/Manager.js @@ -47,7 +47,7 @@ class GiveawaysManager extends EventEmitter { * @type {GiveawaysManagerOptions} */ this.options = merge(GiveawaysManagerOptions, options); - if (new Discord.Intents(this.client.options.intents || this.client.options.ws.intents).has('GUILD_MEMBERS')) this.options.hasGuildMemberIntent = true; + if (new Discord.Intents(client.options.ws.intents).has('GUILD_MEMBERS')) this.options.hasGuildMemberIntent = true; if (init) this._init(); }