Skip to content

Commit

Permalink
remove deprecated channel#deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico105 committed Dec 24, 2021
1 parent b032e1a commit 04144a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ class GiveawaysManager extends EventEmitter {
start(channel, options) {
return new Promise(async (resolve, reject) => {
if (!this.ready) return reject('The manager is not ready yet.');
if (!channel?.id || !channel.isText() || channel.deleted) {
if (!channel?.id || !channel.isText()) {
return reject(`channel is not a valid text based channel. (val=${channel})`);
}
if (channel.isThread() && !channel.sendable) {
Expand Down

0 comments on commit 04144a7

Please sign in to comment.