Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node:15512 [DEP0137] #8

Open
valentineu0 opened this issue May 29, 2024 · 3 comments
Open

node:15512 [DEP0137] #8

valentineu0 opened this issue May 29, 2024 · 3 comments

Comments

@valentineu0
Copy link

About the Error

I'm getting an error in the voiceStateUpdate event that I don't understand. There does not seem to be a problem with the function every time the event is triggered, but the error text comes to the console.

Code

module.exports = [{
    name: "voiceStateUpdate",
    type: "voiceStateUpdate",
    channel: "somechannelID",
    $if: "old",
    code: `
    $if[$authorID!=$clientID]
        $if[$newState[deaf]==$oldState[deaf]]
            $if[$newState[mute]==$oldState[mute]]                      
                $if[$voiceID[$clientID]!=]
                    $setUserVar[lastConnectedVoiceChannel;$voiceID[$authorID]]
                    $title[1;<:valentine_account_voice:1243984171399905301> Sesli Kanala Bağlantı Kuruldu]
                    $description[1;<@$authorID> **$userTag[$authorID]** bir sesli kanala katıldı.]
                    $addField[1;Bağlandığı Kanal;<#$voiceID[$authorID]> — $channelName[$voiceID[$authorID]]]
                    $addTimestamp
                    $color[1;$getGuildVar[color]]
                $else
                    $title[1;<:valentine_account_voice_off:1243984151036690492> Sesli Kanaldan Bağlantısı Sonlandı]
                    $description[1;<@$authorID> **$userTag[$authorID]** bir sesli kanaldan ayrıldı.]
                    $addField[1;Ayrıldığı Kanal;<#$getUserVar[lastConnectedVoiceChannel]> — $channelName[$getUserVar[lastConnectedVoiceChannel]]]
                    $addTimestamp
                    $color[1;$getGuildVar[color]]
                $endif
            $endif
        $endif
    $endif
    `
}];

*There are characters that are not in the English language. Just Turkish language.
*The channel parameter was filled in as an example.

The First Warning from the Console

node:15512) Warning: Closing file descriptor 25 on garbage collection
(node:15512) [DEP0137] DeprecationWarning: Closing a FileHandle object on garbage collection is 
deprecated. Please close FileHandle objects explicitly using FileHandle.prototype.close(). In the future, an error will be thrown if a file descriptor is closed during garbage collection.     
(node:15512) Warning: Closing file descriptor 26 on garbage collection

The Warning That Comes Every Time the Event Is Triggered

image

@USERSATOSHI
Copy link
Member

USERSATOSHI commented May 29, 2024

it is a warning , I will fix this but this can be ignored as this won't cause errors

@valentineu0
Copy link
Author

I'll be waiting for your fix.

@Huguitis
Copy link

it is a warning , I will fix this but this can be ignored as this won't cause errors

Any news with this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants