Bans

Advanced and powerful global ban list API

Check if a user is banned

ksoft.bans.check(user);
ksoft.bans.check(users); // Array<user>

Parameter

Type

user

String (Snowflake) or Array<Snowflake>

Success: Boolean (if only one user)

Success: Array<Snowflake> (if array, only of banned users)

Get information about a ban

ksoft.bans.info(user);
ksoft.bans.info(users); // Array<user>

Parameter

Type

user

String (Snowflake) or Array<Snowflake>

Success: Ban (if one user)

Success: Array<Ban> (if multiple users, only of banned users)

Not Found: null (if one user)

Report a user

ksoft.bans.add(ban);

Parameter

Type

ban

Ban

Success: BanAPIResponse

Last updated