feat: try implement djs voice + video (v12)

This commit is contained in:
Elysia
2024-07-24 19:27:50 +07:00
parent 7fa4666df0
commit 26aa85c126
31 changed files with 3768 additions and 9 deletions

View File

@@ -0,0 +1,14 @@
'use strict';
function parseStreamKey(key) {
const Arr = key.split(':');
const type = Arr[0];
const guildId = type == 'guild' ? Arr[1] : null;
const channelId = type == 'guild' ? Arr[2] : Arr[1];
const userId = type == 'guild' ? Arr[3] : Arr[2];
return { type, guildId, channelId, userId };
}
module.exports = {
parseStreamKey,
};