3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-10 12:25:02 +00:00

Bot now connects, lint fixes

This commit is contained in:
Dark 2021-06-02 19:35:44 +02:00
parent d0a1beb809
commit edcfd2333f
No known key found for this signature in database
GPG key ID: 384C4B4F5B1E25A8
16 changed files with 29 additions and 24 deletions

View file

@ -1,13 +1,13 @@
import { MessageMentionOptions, MessageMentionTypes } from "discord.js";
export function erisAllowedMentionsToDjsMentionOptions(
allowedMentions: erisAllowedMentionFormat | undefined,
allowedMentions: ErisAllowedMentionFormat | undefined,
): MessageMentionOptions | undefined {
if (allowedMentions === undefined) return undefined;
let parse: MessageMentionTypes[] = [];
let users: string[] | undefined = undefined;
let roles: string[] | undefined = undefined;
const parse: MessageMentionTypes[] = [];
let users: string[] | undefined;
let roles: string[] | undefined;
if (Array.isArray(allowedMentions.users)) {
users = allowedMentions.users;
@ -35,7 +35,7 @@ export function erisAllowedMentionsToDjsMentionOptions(
return mentions;
}
export interface erisAllowedMentionFormat {
export interface ErisAllowedMentionFormat {
everyone?: boolean | undefined;
users?: boolean | string[] | undefined;
roles?: boolean | string[] | undefined;