fix(Message): throw error on missing channel (#6581)

Co-authored-by: D Trombett <73136330+DTrombett@users.noreply.github.com>
This commit is contained in:
Rodry
2021-09-28 17:51:42 +01:00
committed by GitHub
parent 3b14883e34
commit 60aa9ae478
2 changed files with 18 additions and 6 deletions

View File

@@ -91,6 +91,7 @@ const Messages = {
GUILD_OWNED: 'Guild is owned by the client.',
GUILD_MEMBERS_TIMEOUT: "Members didn't arrive in time.",
GUILD_UNCACHED_ME: 'The client user as a member of this guild is uncached.',
CHANNEL_NOT_CACHED: 'Could not find the channel where this message came from in the cache!',
STAGE_CHANNEL_RESOLVE: 'Could not resolve channel to a stage channel.',
INVALID_TYPE: (name, expected, an = false) => `Supplied ${name} is not a${an ? 'n' : ''} ${expected}.`,