Skip to content

Commit 542b63e

Browse files
committed
refactor: import discord types from discord.js
1 parent 2dedf93 commit 542b63e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/components/contextmenucommand.js.sapphire

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{ "category": "commands" }
22
---
33
const { Command } = require('@sapphire/framework');
4-
const { ApplicationCommandType } = require('discord-api-types/v10');
4+
const { ApplicationCommandType } = require('discord.js');
55

66
class UserCommand extends Command {
77
/**

templates/components/contextmenucommand.ts.sapphire

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
---
33
import { ApplyOptions } from '@sapphire/decorators';
44
import { Command } from '@sapphire/framework';
5-
import { ApplicationCommandType } from 'discord-api-types/v10';
5+
import { ApplicationCommandType } from 'discord.js';
66

77
@ApplyOptions<Command.Options>({
88
description: 'A basic contextMenu command'

0 commit comments

Comments
 (0)