Skip to content

Commit

Permalink
wait
Browse files Browse the repository at this point in the history
  • Loading branch information
aiko-chan-ai committed May 30, 2023
1 parent ab7280e commit d214539
Show file tree
Hide file tree
Showing 6 changed files with 81 additions and 1 deletion.
Empty file.
81 changes: 81 additions & 0 deletions src/client/websocket/handlers/GUILD_SOUNDBOARD_SOUND_CREATE.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
/*
From Client:
case "VOICE_CHANNEL_EFFECT_SEND":
Wt({
type: "VOICE_CHANNEL_EFFECT_SEND",
emoji: t.emoji,
channelId: t.channel_id,
userId: t.user_id,
animationType: t.animation_type,
animationId: t.animation_id,
soundId: t.sound_id,
soundVolume: t.sound_volume,
soundOverridePath: t.sound_override_path,
points: t.points,
streamerId: t.streamer_id,
lineId: t.line_id,
emojiHose: t.emoji_hose
});
break;
case "GUILD_SOUNDBOARD_SOUND_CREATE":
Wt({
type: "GUILD_SOUNDBOARD_SOUND_CREATE",
sound: {
guildId: t.guild_id,
name: t.name,
soundId: t.sound_id,
user: new ke.Z(t.user),
userId: t.user_id,
volume: t.volume,
emojiId: t.emoji_id,
emojiName: t.emoji_name,
overridePath: t.override_path,
available: t.available
}
});
break;
case "GUILD_SOUNDBOARD_SOUND_UPDATE":
Wt({
type: "GUILD_SOUNDBOARD_SOUND_UPDATE",
sound: {
guildId: t.guild_id,
name: t.name,
soundId: t.sound_id,
user: new ke.Z(t.user),
userId: t.user_id,
volume: t.volume,
emojiId: t.emoji_id,
emojiName: t.emoji_name,
overridePath: t.override_path,
available: t.available
}
});
break;
case "GUILD_SOUNDBOARD_SOUND_DELETE":
Wt({
type: "GUILD_SOUNDBOARD_SOUND_DELETE",
guildId: t.guild_id,
soundId: t.sound_id
});
break;
case "GUILD_SOUNDBOARD_SOUNDS_UPDATE":
Wt({
type: "GUILD_SOUNDBOARD_SOUNDS_UPDATE",
guildId: t.guild_id,
soundboardSounds: t.soundboard_sounds.map((function(e) {
return {
name: e.name,
soundId: e.sound_id,
overridePath: e.override_path,
emojiName: e.emoji_name,
emojiId: e.emoji_id,
userId: e.user_id,
volume: e.volume,
available: e.available,
guildId: t.guild_id
}
}
))
});
break;
*/
Empty file.
Empty file.
Empty file.
1 change: 0 additions & 1 deletion src/util/Permissions.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ class Permissions extends BitField {
* * `MODERATE_MEMBERS`
* * `VIEW_CREATOR_MONETIZATION_ANALYTICS`
* * `USE_SOUNDBOARD`
* * `
* @type {Object<string, bigint>}
* @see {@link https://discord.com/developers/docs/topics/permissions#permissions-bitwise-permission-flags}
*/
Expand Down

0 comments on commit d214539

Please sign in to comment.