DiscordSRV

DiscordSRV

86.8k Downloads

Webhook names don't conform to length limits.

RezzedUp opened this issue ยท 1 comments

commented

I recently had this happen:

[DiscordSRV] Failed to create webhook DiscordSRV #server-name-global #1 for message delivery: 400: {"name":["Must be between 2 and 32 in length."]}
[DiscordSRV] Failed to create webhook DiscordSRV #server-name-global #2 for message delivery: 400: {"name":["Must be between 2 and 32 in length."]}

My channel's name (#server-name-global) pushed DiscordSRV's webhook name over the limit by one character. In the future, it might be useful to have a backup webhook name scheme for channels with longer names. For now, I'll simply rename the channel to something shorter.

commented

One possible solution could be using the channel's ID rather than its name:

DiscordSRV 000000000000000000 #1
DiscordSRV 000000000000000000 #2

These are both exactly 32 characters, and ID's have a fixed length as far as I know.