#I create a warn system

1 messages · Page 1 of 1 (latest)

lapis oyster
#

This is expected. You should store warned members yourself

hexed arrow
#

with user_id

lapis oyster
#

Yes

hexed arrow
#

i print like this, its undefined

#

so, i does store username ?

lapis oyster
#

Looks like your system is not storing all the data properly

hexed arrow
lapis oyster
#

If you want to print out additional data about a user after he left the guild, you have mainly 2 options: collect the additional data during warning (which I recommend), or fetch the data using the user id when print is needed (which can involve problems, as example: if user deletes his account)

hexed arrow
lapis oyster
#

In which situation? Using which method of those 2?

hexed arrow
#

the first method ?

lapis oyster
#

If the user changes his name, and you do not update warning data over time, the name <which the user was using at the time he was banned> will be printed

hexed arrow
#

How to update warning data ?
that's why I used the id

lapis oyster
#

Do you wanna update only for users which are in the guild? Or everyone on the list?

hexed arrow
lapis oyster
#

Is really hard to fetch data for users outside of the guild, especially if you have like 200 of them warned. You're better off using the second method. It will always show up-to-date results without intermediary updates

hexed arrow
#

okay It's what I'm going to do