bans
Last updated
Last updated
Returns a list of ban objects for the users banned from this guild
params
field | type | description |
---|---|---|
Returns Ban[]
Returns a ban object for the given user or errors if the ban cannot be found
Returns Ban
Create a guild ban, and optionally delete previous messages sent by the banned user
field | type | description |
---|---|---|
Returns Ban
Remove the ban for a user
Returns void
Gets this ban and updates this class
Removes this ban
field | type | description |
---|---|---|
limit?
integer
number of users to return (up to maximum 1000)
before?
user id
consider only users before given user id
after?
user id
consider only users after given user id
delete_message_days?
integer
number of days to delete messages for (0-7) - deprecated
delete_message_seconds?
integer
number of seconds to delete messages for, between 0 and 604800 (7 days)
reason
string | null | never
Reason for the ban - never when ban is returned from ban.create
user
User | { id: Snowflake}
The banned user - only has id if ban is returned from ban.create
guild_id
Snowflake
The id of the guild that the user is banned in