Skip to content

Commit

Permalink
fix giveaways start
Browse files Browse the repository at this point in the history
  • Loading branch information
saiteja-madha committed Apr 25, 2022
1 parent a09e7f6 commit f036160
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/commands/giveaways/sub/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
* @param {number} duration
* @param {string} prize
* @param {number} winners
* @param {import('discord.js').User} host
* @param {import('discord.js').User} [host]
*/
module.exports = async (member, giveawayChannel, duration, prize, winners, host) => {
if (!host) host = member.user;
if (!member.permissions.has("MANAGE_MESSAGES")) {
return "You need to have the manage messages permissions to start giveaways.";
}
Expand Down

0 comments on commit f036160

Please sign in to comment.