Common actions
Playing Raw Resource
Learn how to play a custom audio resource using Discord Player
Discord Player natively allows you to play custom audio resource.
If you do not plan on replaying the track, it is recommended to clear the assigned resource from the track to avoid memory leaks.
The following example demonstrates how to clear the resource from the track. You may also utilize the events to clear the resource when the track ends. You can use track.hasResource
to determine if the track has a resource assigned.