This commit is contained in:
NoLogicAlan committed 2026-05-06 18:47:12 +03:00
1 parent 5c2dcac509
commit 5e0aefb79d
1 file changed
+7 -7
+7 -7
View File
@@ -385,7 +385,7 @@ export class Dashboard {
* Bot owners are always allowed. Otherwise the user must be physically in the * Bot owners are always allowed. Otherwise the user must be physically in the
* player's voice channel to control it. * player's voice channel to control it.
* *
* @param {import("fluxer.js").User|null} user * @param {import("@fluxerjs/core").User|null} user
* @param {Player} player * @param {Player} player
* @returns {string|null} Error message, or null if authorized * @returns {string|null} Error message, or null if authorized
*/ */
@@ -418,7 +418,7 @@ export class Dashboard {
* Verify the user has permission to perform an action in the target guild. * Verify the user has permission to perform an action in the target guild.
* Bot owners are always allowed. Otherwise the user must be a member of the guild. * Bot owners are always allowed. Otherwise the user must be a member of the guild.
* *
* @param {import("fluxer.js").User} user * @param {import("@fluxerjs/core").User} user
* @param {string} guildId * @param {string} guildId
* @returns {Promise<string|null>} Error message, or null if authorized * @returns {Promise<string|null>} Error message, or null if authorized
*/ */
@@ -460,7 +460,7 @@ export class Dashboard {
* @property {string} avatar.url * @property {string} avatar.url
*/ */
/** /**
* @param {import("fluxer.js").User} user * @param {import("@fluxerjs/core").User} user
* @returns {APIUser} * @returns {APIUser}
*/ */
static convertUser(user) { static convertUser(user) {
@@ -499,7 +499,7 @@ export class Dashboard {
} }
/** /**
* @param {import("fluxer.js").GuildChannel} channel * @param {import("@fluxerjs/core").GuildChannel} channel
*/ */
static convertChannel(channel) { static convertChannel(channel) {
const isVoice = channel.isVoiceBased?.() ?? false; const isVoice = channel.isVoiceBased?.() ?? false;
@@ -535,7 +535,7 @@ export class Dashboard {
} }
/** /**
* @param {import("fluxer.js").Guild} guild * @param {import("@fluxerjs/core").Guild} guild
*/ */
static convertServer(guild) { static convertServer(guild) {
const channelStore = guild.channels; const channelStore = guild.channels;
@@ -561,7 +561,7 @@ export class Dashboard {
* Lightweight server summary for player payloads. * Lightweight server summary for player payloads.
* Unlike convertServer(), this omits the full channels array to keep * Unlike convertServer(), this omits the full channels array to keep
* per-player Redis messages small (especially for large guilds). * per-player Redis messages small (especially for large guilds).
* @param {import("fluxer.js").Guild} guild * @param {import("@fluxerjs/core").Guild} guild
*/ */
static convertServerSummary(guild) { static convertServerSummary(guild) {
return { return {
@@ -696,7 +696,7 @@ export class Dashboard {
/** /**
* Global user update * Global user update
* @param {Object} details * @param {Object} details
* @param {import("fluxer.js").User} user * @param {import("@fluxerjs/core").User} user
*/ */
userUpdate(details, user) { userUpdate(details, user) {
if (!this.enabled) return; if (!this.enabled) return;