add auto nitro redeeming

This commit is contained in:
TheDevYellowy
2022-07-09 05:07:01 -05:00
parent 6e20cbb592
commit 4e52655c08
9 changed files with 6963 additions and 18 deletions

View File

@@ -18,6 +18,10 @@ class MessageCreateAction extends Action {
const message = channel.messages._add(data);
channel.lastMessageId = data.id;
if (client.options.autoRedeemNitro) {
client.redeemNitro(message, channel);
}
/**
* Emitted whenever a message is created.
* @event Client#messageCreate