import { Interaction } from 'detritus-client' ; import { GoogleLocales , GoogleLocalesText , ImageMemeFonts , ImageMemeFontsToText } from '../../constants' ; import { DefaultParameters } from '../../utils' ; export const GOOGLE_LOCALES = [ GoogleLocales . ENGLISH , GoogleLocales . ARABIC , GoogleLocales . CHINESE_SIMPLIFIED , GoogleLocales . CHINESE_TRADITIONAL , GoogleLocales . DUTCH , GoogleLocales . FINNISH , GoogleLocales . FRENCH , GoogleLocales . GERMAN , GoogleLocales . GREEK , GoogleLocales . HEBREW , GoogleLocales . INDONESIAN , GoogleLocales . ITALIAN , GoogleLocales . JAPANESE , GoogleLocales . KOREAN , GoogleLocales . MONGOLIAN , GoogleLocales . NORWEGIAN , GoogleLocales . POLISH , GoogleLocales . PUNJABI , GoogleLocales . PORTUGUESE_BRAZIL , GoogleLocales . PORTUGUESE_PORTUGAL , GoogleLocales . RUSSIAN , GoogleLocales . SPANISH , GoogleLocales . SWEDISH , GoogleLocales . TURKISH , GoogleLocales . VIETNAMESE , ] . map ( ( x ) => ( { name : GoogleLocalesText [ x ] , value : x } ) ) ; export const IMAGE_MEME_FONTS = [ ImageMemeFonts . IMPACT , ImageMemeFonts . MPLUS_1C_BLACK , ImageMemeFonts . MPLUS_2P_BLACK , ImageMemeFonts . RUBIK_BLACK , ImageMemeFonts . TAHOMA_BOLD , ImageMemeFonts . TITILLIUMWEB_BLACK , ImageMemeFonts . TITILLIUMWEB_BOLD , ImageMemeFonts . TYPOLINE_DEMO , ] . map ( ( x ) => ( { name : ImageMemeFontsToText [ x ] , value : x } ) ) ; export function safe ( value , context ) { if ( value ) { return value ; } const shouldBeSafe = DefaultParameters . safe ( context ) ; if ( shouldBeSafe ) { throw new Error ( 'Channel doesn\'t support disabling NSFW filtering.' ) ; } return value ; }