mirror of
https://github.com/sern-handler/website
synced 2026-06-06 01:16:47 +00:00
format
This commit is contained in:
@@ -12,13 +12,15 @@ import { ApplicationCommandOptionType } from 'discord.js';
|
||||
export default commandModule({
|
||||
type: CommandType.Slash,
|
||||
plugins: [],
|
||||
description: 'look stuff up on google',
|
||||
options: [{
|
||||
name: 'query',
|
||||
description: 'the query to search for',
|
||||
type: ApplicationCommandOptionType.String,
|
||||
required: true,
|
||||
}],
|
||||
description: 'Look stuff up on Google',
|
||||
options: [
|
||||
{
|
||||
name: 'query',
|
||||
description: 'The query to search for',
|
||||
type: ApplicationCommandOptionType.String,
|
||||
required: true,
|
||||
}
|
||||
],
|
||||
execute: async (ctx) => {
|
||||
const query = ctx.options.getString('query', true);
|
||||
const url = `https://google.com/search?q=${encodeURIComponent(query)}`;
|
||||
|
||||
Reference in New Issue
Block a user