ivirtex
Explore posts from serversSIASapphire - Imagine a framework
•Created by ivirtex on 2/24/2025 in #sapphire-support
Is there a better way to handle both message and slash commands?
Docs say that you have to override
messageRun
method to handle message commands and override chatInputRun
for slash commands.
This leads to unnecessary code duplication, since logic would be mostly the same.
discord.py
or serenity
expose something like hybrid commands , so you can write a single handler for any interaction, is there an equivalent for Sapphire?4 replies
DIAdiscord.js - Imagine an app
•Created by ivirtex on 2/19/2025 in #djs-voice
Decoding Opus packets from `AudioReceiveStream` using @discordjs/opus
I have a problem with decoding Opus packets received from AudioReceiveStream using OpusEncoder from @discordjs/opus.
When I try to save decoded samples and play them, every player says they are corrupted.
I know provided example is using prism-media for that, but this would be an overkill for me.
26 replies