-
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
82403a4
commit 7a58e06
Showing
10 changed files
with
42 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,8 @@ | ||
import { PermissionResolvable, Snowflake } from 'discord.js'; | ||
import { BaseApplicationCommandData, Snowflake } from 'discord.js'; | ||
import { NecordBaseDiscovery } from '../context'; | ||
import { LocalizationMap } from 'discord-api-types/v10'; | ||
|
||
// TODO: Use BaseApplicationCommandData | ||
export interface BaseApplicationCommandMeta { | ||
name: string; | ||
name_localizations?: LocalizationMap; | ||
dm_permission?: boolean; | ||
default_member_permissions?: PermissionResolvable; | ||
|
||
// The functionality not released yet https://github.com/discord/discord-api-docs/pull/4965 | ||
// nsfw?: boolean; | ||
|
||
/** | ||
* @deprecated Use `dm_permission` and/or `default_member_permissions` instead | ||
*/ | ||
default_permission?: boolean; | ||
} | ||
|
||
export abstract class CommandDiscovery< | ||
T extends BaseApplicationCommandMeta = BaseApplicationCommandMeta | ||
T extends BaseApplicationCommandData = BaseApplicationCommandData | ||
> extends NecordBaseDiscovery<T> { | ||
public abstract getGuilds(): Set<Snowflake>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 6 additions & 2 deletions
8
src/commands/slash-commands/autocomplete/autocomplete.decorator.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters