matrix-org / matrix-appservice-discord

A bridge between Matrix and Discord.
Apache License 2.0
785 stars 148 forks source link

Echoing when someone say something in discord #874

Closed rredford closed 1 year ago

rredford commented 1 year ago

Seems when discord changed something in API, it caused people on discord to be echoed by bot when they say something.

I got this info from different bot dev so it might apply to this also.

"Starting early next month (January 2023), falsy field values must match that field’s specified type. If your app is not passing correctly-typed falsy values for all API fields, you should update your app or you will begin to encounter new errors.

An exception to the new stricter type enforcements is boolean-typed fields, which will accept 0 in addition to false (though using false is still recommended in most cases).

Previous behavior Though the behavior wasn’t documented, some fields previously allowed any type of falsy value and would resolved them all to null. For example, an empty string passed in a list-typed field would resolve to null.

Updating your app If your app is passing any falsy values that do not correspond to that field’s type, update your code so that it matches. For example, if your app is passing an empty list for a string-typed field, update that code to instead pass an empty string. this is api change"

rredford commented 1 year ago

"was the registration file a file generated by the appservice and shared betwen the matrix server and the appservice itself my file was old aparently i did a backup and I generated a new one"

Problem solved. :)