Skip to content

Commit

Permalink
change webhook name
Browse files Browse the repository at this point in the history
Creating webhooks fail on:

```
ERRO[9779449] could not transmit message to discord         error="could not create webhook: HTTP 400 Bad Request, {\"code\": 50035, \"errors\": {\"name\": {\"_errors\": [{\"code\": \"USERNAME_INVALID_CONTAINS\", \"message\": \"Username cannot contain \\\"discord\\\"\"}]}}, \"message\": \"Invalid Form Body\"}" msg.avatar="https://cdn.discordapp.com/avatars/83386293446246400/7170be0d5936eb4beec03454d6385721.png" msg.channel=1028406920282910821 msg.content=test msg.username=qaisjp
```
  • Loading branch information
qaisjp committed Dec 21, 2022
1 parent bebe175 commit 007d8e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bridge/discord.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func newDiscord(bridge *Bridge, botToken, guildID string) (*discordBot, error) {
}

func (d *discordBot) Open() error {
d.transmitter = transmitter.New(d.Session, d.guildID, "go-discord-irc", true)
d.transmitter = transmitter.New(d.Session, d.guildID, "irc-bridge", true)
d.transmitter.Log = logrus.NewEntry(logrus.StandardLogger())
if err := d.transmitter.RefreshGuildWebhooks(nil); err != nil {
return fmt.Errorf("failed to refresh guild webhooks: %w", err)
Expand Down

0 comments on commit 007d8e7

Please sign in to comment.