Bot releases are visible (Hide)
Published by Assassin-1234 about 3 years ago
- Nuggies.giveaways.create({ message, prize, hostID, winners, endAfter, requirements: { enabled: false }, channelID })
+ Nuggies.giveaways.create(client, { prize, hostID, winners, endAfter, requirements: { enabled: false }, channel })
- Nuggies.giveaways.drop({ message, prize, channelID, hostID })
+ Nuggies.giveaways.drop(client, { prize, channel, hostID })
- Nuggies.dropdownroles.create({ message, role, content, channelID })
+ Nuggies.dropdownroles.create(client, { content, role, channelID })
- Nuggies.buttonroles.create({ message, role, content, channelID })
+ Nuggies.buttonroles.create(client, { content, role, channelID })
- Nuggies.giveaways.Messages(client, {});
+ Nuggies.Messages(client, {
+ giveawayOptions: {
+ dmWinner: true,
+ giveaway: '🎉🎉 **GIVEAWAY MOMENT** 🎉🎉',
+ giveawayDescription: '🎁 Prize: **{prize}**\n🎊 Hosted by: {hostedBy}\n⏲️ Winner(s): `{winners}`\n\nRequirements: {requirements}',
+ endedGiveawayDescription: '🎁 Prize: **{prize}**\n🎊 Hosted by: {hostedBy}\n⏲️ Winner(s): {winners}',
+ giveawayFooterImage: 'https://cdn.discordapp.com/emojis/843076397345144863.png',
+ winMessage: '{winners} you won {prize} Congratulations! Hosted by {hostedBy}',
+ rerolledMessage: 'Rerolled! {winner} is the new winner of the giveaway!', // only {winner} placeholder
+ toParticipate: '**Click the Enter button to enter the giveaway!**',
+ newParticipant: 'You have successfully entered for this giveaway', // no placeholders | ephemeral
+ alreadyParticipated: 'you already entered this giveaway!', // no placeholders | ephemeral
+ noParticipants: 'There are not enough people in the giveaway!', // no placeholders
+ noRole: 'You do not have the required role(s)\n{requiredRoles}\n for the giveaway!', // only {requiredRoles} | ephemeral
+ dmMessage: 'You have won a giveaway in **{guildName}**!\nPrize: [{prize}]({giveawayURL})',
+ noWinner: 'Not enough people participated in this giveaway.', // no {winner} placerholder
+ alreadyEnded: 'The giveaway has already ended!', // no {winner} placeholder
+ dropWin: '{winner} Won The Drop!!', // only {winner} placeholder
+ },
+ buttonRolesOptions: { // {role} placeholder only
+ addMessage: 'I have added the {role} role to you!',
+ removeMessage: 'I have removed the {role} role from you!',
+ }
+ dropdownRolesOptions: { // {role} placeholder only
+ addMessage: 'I have added the {role} role to you!',
+ removeMessage: 'I have removed the {role} role from you!',
+ }
+ })
slash giveaways
slash button roles
slash dropdown roles
slash applications
Published by Assassin-1234 about 3 years ago
Messages
functionPublished by Assassin-1234 about 3 years ago
After about 1-2 week(s) of testing and coding, nuggies package finally supports discord.js v13! There were no new features in this update. We will also get typings soon! Here are some changes that were made to the way the package worked:
NPM will no longer install discord.js or discord-buttons you will have to install it yourself.
Some bugs were fixed in giveaways, and applications
As stated above, no new features were added
The code related to nuggies will be same as previous, that is, the code as per user's perspective does not change only the package's code changes
If anything does not work(errors, bugs, etc.) you can report it to us in #✨〢npm-support :)
That's all for this update people, until next time then 💃
Published by Assassin-1234 about 3 years ago
buttonroles.Message
functiondropdownroles.Message
functionmessage of undefined
errors on startAgain functionPublished by Assassin-1234 about 3 years ago
Published by Assassin-1234 about 3 years ago
Nuggies.handleInteractions(client)
params
client: Discord Client
a pre made template for your bot.
Nuggies.applications.setup(message)
params
message: message callback from message event
Creates a application for which anyone can make a response.
Nuggies.applications.addApplication(
{ guildID, questions, name, emoji, channel, description, label, maxApps, cooldown, responseChannelID },
)
params
guildID: The ID of the guild in which the application is to be added
questions: An array of questions to be asked in DM, Example:
js ['How old are you?', 'How much time would you devote to it?'];
name: The name of the application\
emoji: The emoji to be put in the menu
channel: The ID of the channel in which the message is to be sent
description: The description of the application
label: The label of the application in the menu
maxApps: The maximum amount of application 1 can create before it gets accepted/declined
cooldown: The cooldown before creating another response
responseChannelID: The channel to send responses in
Deletes an application for the guild
Nuggies.applications.deleteapplication({ guildID, name });
params
guildID: The ID of the guild
name: The name of the application to remove
Creates/Initializes the application system for the guild
Nuggies.applications.create({ guildID, content, client })
params
guildID: The ID of the guild to be created in
content: The content of message to be sent in the channel
client: The discord.js client used
Gets the data from database for you
Nuggies.applications.getDataByGuild(guildID);
guildID: The ID of the guild
Published by Assassin-1234 over 3 years ago
constructor. use .setrole() on it to create dropdown options
const something = new Nuggies.dropdownroles().addrole({
label: 'test',
role: 'roleID',
emoji: 'emojiID'
});
options
label: dropdown option label
role: role that would be added on click
emoji: ID of the emoji on the dropdown option, optional.
creates the dropdown roles
Nuggies.dropdown.create({
message: message,
role: role, /*dropdownroles constructor*/
content: new Discord.MessageEmbed().setTitle('xd').setDescription('xdxd') });
Nuggies.giveaways.connect
to Nuggies.connect
Nuggies.giveaways.buttonclick
and Nuggies.buttonroles.buttonclick
to Nuggies.buttonclick
Nuggies.dropclick
, handles dropMenu interactionsPublished by Assassin-1234 over 3 years ago
This update includes
Published by Assassin-1234 over 3 years ago
starts the giveaway again after restart, put this in ready event to start All the giveaways again.
Nuggies.giveaways.startAgain(client)
client: Discord Client
Published by Assassin-1234 over 3 years ago
Nuggies npm!! there is alot to come to this but starting off with the easiest discord giveaways with buttons!