kurzgesagt-in-a-nutshell / birdbot

A multipurpose bot for the kurzgesagt discord server
GNU General Public License v3.0
20 stars 4 forks source link

[Bug]: `infractions` command shows old username. #205

Closed s-mv closed 2 months ago

s-mv commented 5 months ago

Discord Contact Details

489437432484200480

Title

infractions command shows old username instead of the current one.

Reproduction Steps

Use infractions on a user whose username has changed since they joined the server (for instance user 971109558074343434, so /infractions 971109558074343434).

Expected Results

The command should retrieve the member's current username (along with other information).

Actual Results

The command retrieves the username stored in the database rather than the current one. (This is most probably because the username's being retrieved from user_name instead of getting it using the member's ID.)

Relevant log output

No response

System Information

No response

arcinfini commented 2 months ago

Resolved in #225