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:
parent
d0a1beb809
commit
edcfd2333f
16 changed files with 29 additions and 24 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue