feat(BitField): move problematic bit into the error message (#5228)

* feat(BitField): move problematic bit into the error message

* fix: remove intermediate constant
This commit is contained in:
Souji
2021-01-22 17:44:50 +01:00
committed by GitHub
parent 764966e398
commit 273e9557be
2 changed files with 2 additions and 4 deletions

View File

@@ -13,7 +13,7 @@ const Messages = {
WS_CONNECTION_EXISTS: 'There is already an existing WebSocket connection.',
WS_NOT_OPEN: (data = 'data') => `Websocket not open to send ${data}`,
BITFIELD_INVALID: 'Invalid bitfield flag or number.',
BITFIELD_INVALID: bit => `Invalid bitfield flag or number: ${bit}.`,
SHARDING_INVALID: 'Invalid shard settings were provided.',
SHARDING_REQUIRED: 'This session would have handled too many guilds - Sharding is required.',