UNPKG

discord.js-selfbot-v13-legends

Version:

A unofficial discord.js fork for creating selfbots [Based on discord.js v13]

15 lines (12 loc) 347 B
'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, };