Fix various bugs, update djs
This commit is contained in:
parent
4d1924b1ec
commit
dda19de6e6
31 changed files with 96 additions and 72 deletions
|
@ -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?");
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue