kylerchin / adorabot

Detected usage of the any type JS-0323
Anti-pattern
Critical
76 occurrences in this check
Unexpected any. Specify a different type
45       
46                 } 
47                   
48                }).catch((error:any) => { 49 
50                    console.log(error); 
51                     
Unexpected any. Specify a different type
22                const pathForYtRequest = "https://youtube.googleapis.com/youtube/v3/videos?part=statistics&id=hr-325mclek&key=" + key; 
23       
24                await axios.get(pathForYtRequest) 
25                .then(async (response:any) => { 26       
27                    //console.log(response.data) 
28 
Unexpected any. Specify a different type
219commands.forEach(async command => {
220  await interaction
221.createApplicationCommand(command)
222.then((output:any) => {223  console.log(output);
224 
225    console.error(JSON.stringify(output.errors))
Unexpected any. Specify a different type
4const id = parentPort.workerData.id;
5const optionsObject = parentPort.workerData.optionsObject;
6
7ytChart(id, optionsObject).then((result: any) => {8    parentPort.postMessage(result);
9});
Unexpected any. Specify a different type
 712                            pointy);
 713                        ctxSubYLineLegend.stroke();
 714
 715                        var nameOfNumberSmall: any = countsmally; 716
 717                        if (countsmally % 1000) {
 718                            if (locale === "kr" || locale === "zh-CN" || locale === "zh-TW") {
Unexpected any. Specify a different type
  60    timeRange?: number;
  61    locale?: any;
  62    publishedAt?: any;
  63    subtitle?: any;  64}
  65
  66export async function imageGeneratorFunction(optionsForImageGen: imagegeninterface) {
Unexpected any. Specify a different type
  59    beginningTime?: number;
  60    timeRange?: number;
  61    locale?: any;
  62    publishedAt?: any;  63    subtitle?: any;
  64}
  65
Unexpected any. Specify a different type
  58    cassandratimedone?: number;
  59    beginningTime?: number;
  60    timeRange?: number;
  61    locale?: any;  62    publishedAt?: any;
  63    subtitle?: any;
  64}
Unexpected any. Specify a different type
  54    leastAndGreatestObject: any;
  55    isBlocked: boolean;
  56    titletext: string;
  57    arrayOfStats: Array<any>;  58    cassandratimedone?: number;
  59    beginningTime?: number;
  60    timeRange?: number;
Unexpected any. Specify a different type
  51interface imagegeninterface {
  52    numberOfRows: number;
  53    viewRange: number;
  54    leastAndGreatestObject: any;  55    isBlocked: boolean;
  56    titletext: string;
  57    arrayOfStats: Array<any>;
Unexpected any. Specify a different type
  37    addOnPoints?: AddOnPointsEntity[] | null;
  38    publishedAt?: Date;
  39    locale?: any;
  40    subtitle?: any;  41}
  42
  43interface AddOnPointsEntity {
Unexpected any. Specify a different type
  36    [key: string]: any;
  37    addOnPoints?: AddOnPointsEntity[] | null;
  38    publishedAt?: Date;
  39    locale?: any;  40    subtitle?: any;
  41}
  42
Unexpected any. Specify a different type
  33
  34interface optionsInterface {
  35    channelId?: string;
  36    [key: string]: any;  37    addOnPoints?: AddOnPointsEntity[] | null;
  38    publishedAt?: Date;
  39    locale?: any;
Unexpected any. Specify a different type
170    }
171}
172
173export async function youtubeVideoStatsInteraction(interaction: any, config: any) {174
175    // Defer to send an ephemeral reply later
176    interaction.deferReply()
Unexpected any. Specify a different type
170    }
171}
172
173export async function youtubeVideoStatsInteraction(interaction: any, config: any) {174
175    // Defer to send an ephemeral reply later
176    interaction.deferReply()
Unexpected any. Specify a different type
126}
127
128
129export async function youtubeVideoButtonInteraction(interaction: ButtonInteraction, config:any) {130          // Defer to send an ephemeral reply later
131    interaction.deferReply()
132    .then(console.log)
Unexpected any. Specify a different type
218                ]
219              };
220
221              var contentOfMessageReply: any;222
223
224              if (successimage) {
Unexpected any. Specify a different type
 71
 72              console.log('promise start')
 73
 74              var promiseresults: any = await Promise.allSettled([ 75                axios.get(pathForChannelOfVideoRequest),
 76                ytChart(body.items[0].id, {
 77                  channelId: body.items[0].snippet.channelId,
Unexpected any. Specify a different type
 35
 36interface showTopVotersArgsInteraction {
 37    interaction: CommandInteraction;
 38    client: any; 39}
 40
 41export async function showListOfVotersTimes(voteArgs: showTopVotersArgs) {
Unexpected any. Specify a different type
 30interface showTopVotersArgs {
 31    message: Message;
 32    [key: string]: any;
 33    client: any; 34}
 35
 36interface showTopVotersArgsInteraction {
Unexpected any. Specify a different type
 29
 30interface showTopVotersArgs {
 31    message: Message;
 32    [key: string]: any; 33    client: any;
 34}
 35
Unexpected any. Specify a different type
  8    individualservertodoeachban: any, 
  9    eachBannableUserRow: any, 
 10    unknownuserlocalarray: any, 
 11    toBanReason: any  12} 
 13 
 14export async function strikeBanHammer(options: optionsInterface) { 
Unexpected any. Specify a different type
  7interface optionsInterface { 
  8    individualservertodoeachban: any, 
  9    eachBannableUserRow: any, 
 10    unknownuserlocalarray: any,  11    toBanReason: any 
 12} 
 13 
Unexpected any. Specify a different type
  6 
  7interface optionsInterface { 
  8    individualservertodoeachban: any, 
  9    eachBannableUserRow: any,  10    unknownuserlocalarray: any, 
 11    toBanReason: any 
 12} 
Unexpected any. Specify a different type
  5let fileOfBanTimeouts = editJsonFile(`${__dirname}/../../putgetbanstimeout.json`); 
  6 
  7interface optionsInterface { 
  8    individualservertodoeachban: any,   9    eachBannableUserRow: any, 
 10    unknownuserlocalarray: any, 
 11    toBanReason: any