This commit is contained in:
		@@ -1,8 +1,9 @@
 | 
			
		||||
import { Command } from '../structures/command'
 | 
			
		||||
export default new Command({
 | 
			
		||||
	name: 'ping',
 | 
			
		||||
	description: 'Does a pong',
 | 
			
		||||
	description: 'Does a pong, duh',
 | 
			
		||||
	run: async ({ interaction }) => {
 | 
			
		||||
		interaction.reply('pong')
 | 
			
		||||
		console.log(`Ping interaction received.`)
 | 
			
		||||
		interaction.followUp('pong')
 | 
			
		||||
	}
 | 
			
		||||
})
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
export const name = 'ready'
 | 
			
		||||
export function execute(client: any) {
 | 
			
		||||
	console.log(`${JSON.stringify(client)} has been created.`)
 | 
			
		||||
	console.log(`Processing ready: ${JSON.stringify(client)} has been created.`)
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -6,7 +6,6 @@ export interface Player {
 | 
			
		||||
export type supported_languages = "german" | "english"
 | 
			
		||||
export interface localized_string {
 | 
			
		||||
	[k: string]: {
 | 
			
		||||
		german: string,
 | 
			
		||||
		english: string
 | 
			
		||||
		[k in supported_languages]: string
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -51,7 +51,7 @@ export class ExtendedClient extends Client {
 | 
			
		||||
			}
 | 
			
		||||
			this.on("ready", (client: Client) => {
 | 
			
		||||
				console.log(`Ready processing ${client}`)
 | 
			
		||||
				console.log(`${JSON.stringify(slashCommands)}`)
 | 
			
		||||
				console.log(`SlashCommands: ${JSON.stringify(slashCommands)}`)
 | 
			
		||||
				const guilds = client.guilds.cache
 | 
			
		||||
				this.registerCommands(slashCommands, guilds)
 | 
			
		||||
			})
 | 
			
		||||
 
 | 
			
		||||
@@ -5,7 +5,7 @@ export interface ExtendedInteraction extends CommandInteraction {
 | 
			
		||||
	member: GuildMember
 | 
			
		||||
}
 | 
			
		||||
interface RunOptions {
 | 
			
		||||
	clients: ExtendedClient
 | 
			
		||||
	client: ExtendedClient
 | 
			
		||||
	interaction: ExtendedInteraction
 | 
			
		||||
	args: CommandInteractionOptionResolver
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user