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({
|
export default commandModule({
|
||||||
type: CommandType.Slash,
|
type: CommandType.Slash,
|
||||||
plugins: [],
|
plugins: [],
|
||||||
description: 'look stuff up on google',
|
description: 'Look stuff up on Google',
|
||||||
options: [{
|
options: [
|
||||||
name: 'query',
|
{
|
||||||
description: 'the query to search for',
|
name: 'query',
|
||||||
type: ApplicationCommandOptionType.String,
|
description: 'The query to search for',
|
||||||
required: true,
|
type: ApplicationCommandOptionType.String,
|
||||||
}],
|
required: true,
|
||||||
|
}
|
||||||
|
],
|
||||||
execute: async (ctx) => {
|
execute: async (ctx) => {
|
||||||
const query = ctx.options.getString('query', true);
|
const query = ctx.options.getString('query', true);
|
||||||
const url = `https://google.com/search?q=${encodeURIComponent(query)}`;
|
const url = `https://google.com/search?q=${encodeURIComponent(query)}`;
|
||||||
|
|||||||
Reference in New Issue
Block a user