Skip to content

Commit

Permalink
Merge pull request #128 from saiteja-madha/fix-giveaways
Browse files Browse the repository at this point in the history
fix giveaways start
  • Loading branch information
saiteja-madha authored May 10, 2022
2 parents 6b62550 + f036160 commit 83948b7
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 83948b7

Please sign in to comment.