Skip to content

Commit

Permalink
🐛 link to EmbedFooterObject explenation
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico105 committed Jun 23, 2021
1 parent 670e9c3 commit f0a6b79
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 3 additions & 3 deletions src/Constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
*/

Expand Down
2 changes: 1 addition & 1 deletion src/Manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit f0a6b79

Please sign in to comment.