UNPKG

@tryforge/forgescript

Version:

ForgeScript is a comprehensive package that empowers you to effortlessly interact with Discord's API. It ensures scripting remains easy to learn and consistently effective.

39 lines 1.8 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.VoiceStateProperties = exports.VoiceStateProperty = void 0; const defineProperties_1 = __importDefault(require("../functions/defineProperties")); var VoiceStateProperty; (function (VoiceStateProperty) { VoiceStateProperty["channelID"] = "channelID"; VoiceStateProperty["guildID"] = "guildID"; VoiceStateProperty["authorID"] = "authorID"; VoiceStateProperty["deaf"] = "deaf"; VoiceStateProperty["selfDeaf"] = "selfDeaf"; VoiceStateProperty["guildDeaf"] = "guildDeaf"; VoiceStateProperty["muted"] = "muted"; VoiceStateProperty["selfMuted"] = "selfMuted"; VoiceStateProperty["guildMuted"] = "guildMuted"; VoiceStateProperty["timestamp"] = "timestamp"; VoiceStateProperty["selfVideo"] = "selfVideo"; VoiceStateProperty["streaming"] = "streaming"; VoiceStateProperty["suppressed"] = "suppressed"; })(VoiceStateProperty || (exports.VoiceStateProperty = VoiceStateProperty = {})); exports.VoiceStateProperties = (0, defineProperties_1.default)({ timestamp: (i) => i?.channel?.createdTimestamp, authorID: (i) => i?.member?.id, channelID: (i) => i?.channelId, guildID: (i) => i?.guild.id, deaf: (i) => i?.deaf ?? false, guildDeaf: (i) => i?.serverDeaf ?? false, guildMuted: (i) => i?.serverMute ?? false, muted: (i) => i?.mute ?? false, selfDeaf: (i) => i?.selfDeaf ?? false, selfMuted: (i) => i?.selfMute ?? false, selfVideo: (i) => i?.selfVideo ?? false, streaming: (i) => i?.streaming ?? false, suppressed: (i) => i?.suppress ?? false }); //# sourceMappingURL=voiceState.js.map