Skip to content

Commit

Permalink
fix: add discord.js utilities for type guards
Browse files Browse the repository at this point in the history
  • Loading branch information
favna committed Jan 19, 2021
1 parent fd619f5 commit cf74431
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 5 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
},
"dependencies": {
"@sapphire/discord-utilities": "^2.0.1",
"@sapphire/discord.js-utilities": "^1.2.0",
"@sapphire/pieces": "^1.1.0",
"@sapphire/ratelimits": "^1.1.4",
"@sapphire/utilities": "^1.4.3",
Expand Down
2 changes: 1 addition & 1 deletion src/arguments/CoreDMChannel.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isDMChannel } from '@sapphire/discord-utilities';
import { isDMChannel } from '@sapphire/discord.js-utilities';
import type { PieceContext } from '@sapphire/pieces';
import type { DMChannel } from 'discord.js';
import { Argument, ArgumentResult } from '../lib/structures/Argument';
Expand Down
2 changes: 1 addition & 1 deletion src/arguments/CoreMessage.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isNewsChannel, isTextChannel, MessageLinkRegex, SnowflakeRegex } from '@sapphire/discord-utilities';
import { isNewsChannel, isTextChannel, MessageLinkRegex, SnowflakeRegex } from '@sapphire/discord.js-utilities';
import type { PieceContext } from '@sapphire/pieces';
import { DMChannel, Message, NewsChannel, Permissions, TextChannel } from 'discord.js';
import { Argument, ArgumentContext, AsyncArgumentResult } from '../lib/structures/Argument';
Expand Down
2 changes: 1 addition & 1 deletion src/arguments/CoreNewsChannel.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isNewsChannel } from '@sapphire/discord-utilities';
import { isNewsChannel } from '@sapphire/discord.js-utilities';
import type { PieceContext } from '@sapphire/pieces';
import type { GuildChannel, NewsChannel } from 'discord.js';
import type { ArgumentResult } from '../lib/structures/Argument';
Expand Down
2 changes: 1 addition & 1 deletion src/arguments/CoreTextChannel.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isTextChannel } from '@sapphire/discord-utilities';
import { isTextChannel } from '@sapphire/discord.js-utilities';
import type { PieceContext } from '@sapphire/pieces';
import type { GuildChannel, TextChannel } from 'discord.js';
import type { ArgumentResult } from '../lib/structures/Argument';
Expand Down
2 changes: 1 addition & 1 deletion src/arguments/CoreVoiceChannel.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isVoiceChannel } from '@sapphire/discord-utilities';
import { isVoiceChannel } from '@sapphire/discord.js-utilities';
import type { PieceContext } from '@sapphire/pieces';
import type { GuildChannel, VoiceChannel } from 'discord.js';
import type { ArgumentResult } from '../lib/structures/Argument';
Expand Down
7 changes: 7 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,13 @@
dependencies:
twemoji-parser "^13.0.0"

"@sapphire/discord.js-utilities@^1.2.0":
version "1.2.0"
resolved "https://registry.yarnpkg.com/@sapphire/discord.js-utilities/-/discord.js-utilities-1.2.0.tgz#0ec4c162d371de022e6ebeca86ba86e2d5fb4ed1"
integrity sha512-0EXzqrzVS9iTdcood1BkXG7X5jkgkZj2UigGw2Y8SvaqSVJm5l+gY8QPDTkr9S90ULPep/+w3ce9Ox/ovMiaCQ==
dependencies:
"@sapphire/discord-utilities" "^2.0.1"

"@sapphire/eslint-config@^2.1.0":
version "2.1.0"
resolved "https://registry.yarnpkg.com/@sapphire/eslint-config/-/eslint-config-2.1.0.tgz#bce6ad2779783d16e12b0f7f2150342ae41f291d"
Expand Down

0 comments on commit cf74431

Please sign in to comment.