generated from Baipyrus/DiscordJS-Template
refactor: auto format
This commit is contained in:
parent
3a2073f61f
commit
746341d48a
@ -77,7 +77,7 @@ const leftVoiceChat = async (state) => {
|
||||
|
||||
export const name = Events.VoiceStateUpdate;
|
||||
export async function execute(oldState, newState) {
|
||||
await leftVoiceChat(oldState)
|
||||
await leftVoiceChat(oldState);
|
||||
if (!newState.channel) return;
|
||||
|
||||
// Find channel by id, return if not registered for customs
|
||||
|
@ -66,8 +66,7 @@ const editMessage = async (message, role, emoji) => {
|
||||
|
||||
// Get old and build new content of message
|
||||
const current = message.content;
|
||||
const next = current + padding +
|
||||
`React with ${emoji} to receive <@&${role.id}>!`;
|
||||
const next = current + padding + `React with ${emoji} to receive <@&${role.id}>!`;
|
||||
|
||||
// Set message by editing
|
||||
await message.edit(next);
|
||||
|
Loading…
Reference in New Issue
Block a user