3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-22 09:15:03 +00:00

Fix various bugs, update djs

This commit is contained in:
Dark 2021-07-04 23:14:12 +02:00
parent 2a669267cb
commit 1c7e97c785
31 changed files with 96 additions and 72 deletions

View file

@ -10,10 +10,10 @@ export async function moveMember(
errorChannel: TextChannel,
) {
const modMember: GuildMember = await pluginData.guild.members.fetch(toMoveID as Snowflake);
if (modMember.voice.channelID != null) {
if (modMember.voice.channelId != null) {
try {
await modMember.edit({
channel: target.voice.channelID,
channel: target.voice.channelId,
});
} catch {
sendErrorMessage(pluginData, errorChannel, "Failed to move you. Are you in a voice channel?");

View file

@ -11,8 +11,8 @@ export async function sendWhere(
channel: TextChannel,
prepend: string,
) {
const voice = member.voice.channelID
? (pluginData.guild.channels.resolve(member.voice.channelID) as VoiceChannel)
const voice = member.voice.channelId
? (pluginData.guild.channels.resolve(member.voice.channelId) as VoiceChannel)
: null;
if (voice == null) {