mirror of
https://github.com/SrIzan10/discord-youtube-notifications.git
synced 2026-05-01 10:45:12 +00:00
Auto Edit
This commit is contained in:
@@ -90,7 +90,7 @@ class notifier extends EventEmitter {
|
||||
|
||||
while (!this._connected) await new Promise(res => setTimeout(res, 500));
|
||||
|
||||
if (this._channels.some(v => v.youtube === youtubeId)) throw new Error("This channel already exist");
|
||||
if (this._channels.some(v => v.youtube === youtubeId)) return this.editNotifier(youtubeId, channelID, message)
|
||||
|
||||
const last = await lastVideo.bind(this)({ youtube: youtubeId });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user