refactor: use eslint-config-neon for packages. (#8579)

Co-authored-by: Noel <buechler.noel@outlook.com>
This commit is contained in:
Suneet Tipirneni
2022-09-01 14:50:16 -04:00
committed by GitHub
parent 4bdb0593ae
commit edadb9fe5d
219 changed files with 2608 additions and 2053 deletions

View File

@@ -6,13 +6,13 @@ import type { DiscordGatewayAdapterCreator } from './util/adapter';
* The options that can be given when creating a voice connection.
*/
export interface CreateVoiceConnectionOptions {
adapterCreator: DiscordGatewayAdapterCreator;
/**
* If true, debug messages will be enabled for the voice connection and its
* related components. Defaults to false.
*/
debug?: boolean | undefined;
adapterCreator: DiscordGatewayAdapterCreator;
}
/**
@@ -24,6 +24,11 @@ export interface JoinVoiceChannelOptions {
*/
channelId: string;
/**
* An optional group identifier for the voice connection.
*/
group?: string;
/**
* The id of the guild that the voice channel belongs to.
*/
@@ -38,20 +43,14 @@ export interface JoinVoiceChannelOptions {
* Whether to join the channel muted (defaults to true)
*/
selfMute?: boolean;
/**
* An optional group identifier for the voice connection.
*/
group?: string;
}
/**
* Creates a VoiceConnection to a Discord voice channel.
*
* @param voiceChannel - the voice channel to connect to
* @param options - the options for joining the voice channel
*/
export function joinVoiceChannel(options: JoinVoiceChannelOptions & CreateVoiceConnectionOptions) {
export function joinVoiceChannel(options: CreateVoiceConnectionOptions & JoinVoiceChannelOptions) {
const joinConfig: JoinConfig = {
selfDeaf: true,
selfMute: false,