update interfaces
ci/woodpecker/push/woodpecker Pipeline was successful Details

This commit is contained in:
mightypanders 2022-04-09 23:02:08 +02:00
parent 4dad1b9ad8
commit 10bc4ae5df
5 changed files with 7 additions and 7 deletions

View File

@ -1,8 +1,9 @@
import { Command } from '../structures/command' import { Command } from '../structures/command'
export default new Command({ export default new Command({
name: 'ping', name: 'ping',
description: 'Does a pong', description: 'Does a pong, duh',
run: async ({ interaction }) => { run: async ({ interaction }) => {
interaction.reply('pong') console.log(`Ping interaction received.`)
interaction.followUp('pong')
} }
}) })

View File

@ -1,4 +1,4 @@
export const name = 'ready' export const name = 'ready'
export function execute(client: any) { export function execute(client: any) {
console.log(`${JSON.stringify(client)} has been created.`) console.log(`Processing ready: ${JSON.stringify(client)} has been created.`)
} }

View File

@ -6,7 +6,6 @@ export interface Player {
export type supported_languages = "german" | "english" export type supported_languages = "german" | "english"
export interface localized_string { export interface localized_string {
[k: string]: { [k: string]: {
german: string, [k in supported_languages]: string
english: string
} }
} }

View File

@ -51,7 +51,7 @@ export class ExtendedClient extends Client {
} }
this.on("ready", (client: Client) => { this.on("ready", (client: Client) => {
console.log(`Ready processing ${client}`) console.log(`Ready processing ${client}`)
console.log(`${JSON.stringify(slashCommands)}`) console.log(`SlashCommands: ${JSON.stringify(slashCommands)}`)
const guilds = client.guilds.cache const guilds = client.guilds.cache
this.registerCommands(slashCommands, guilds) this.registerCommands(slashCommands, guilds)
}) })

View File

@ -5,7 +5,7 @@ export interface ExtendedInteraction extends CommandInteraction {
member: GuildMember member: GuildMember
} }
interface RunOptions { interface RunOptions {
clients: ExtendedClient client: ExtendedClient
interaction: ExtendedInteraction interaction: ExtendedInteraction
args: CommandInteractionOptionResolver args: CommandInteractionOptionResolver
} }