mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-12 09:33:32 +01:00
Add arrow-parens eslint rule & fix inconsistencies
This commit is contained in:
@@ -99,7 +99,7 @@ class RESTMethods {
|
||||
const messages = [];
|
||||
(function sendChunk(list, index) {
|
||||
const options = index === list.length ? { tts, embed } : { tts };
|
||||
chan.send(list[index], options, index === list.length ? file : null).then((message) => {
|
||||
chan.send(list[index], options, index === list.length ? file : null).then(message => {
|
||||
messages.push(message);
|
||||
if (index >= list.length - 1) return resolve(messages);
|
||||
return sendChunk(list, ++index);
|
||||
@@ -856,7 +856,7 @@ class RESTMethods {
|
||||
acceptInvite(code) {
|
||||
if (code.id) code = code.id;
|
||||
return new Promise((resolve, reject) =>
|
||||
this.rest.makeRequest('post', Constants.Endpoints.invite(code), true).then((res) => {
|
||||
this.rest.makeRequest('post', Constants.Endpoints.invite(code), true).then(res => {
|
||||
const handler = guild => {
|
||||
if (guild.id === res.id) {
|
||||
resolve(guild);
|
||||
|
||||
@@ -301,7 +301,7 @@ class VoiceBroadcast extends VolumeInterface {
|
||||
|
||||
let packetMatrix = {};
|
||||
|
||||
const getOpusPacket = (volume) => {
|
||||
const getOpusPacket = volume => {
|
||||
if (packetMatrix[volume]) return packetMatrix[volume];
|
||||
|
||||
const opusEncoder = this._encoders.get(volume);
|
||||
|
||||
Reference in New Issue
Block a user