Bans
Advanced and powerful global ban list API
Check if a user is banned
ksession.CheckBan(userid) (bool, error)Parameter
Type
userid
int64
isbanned, err := ksession.CheckBan(118499178790780929)Get information about a ban
ksession.GetBanInfo(userid) (BanInfo, error)Parameter
Type
userid
int64
info, err := ksession.GetBanInfo(670674676632256532)Report a user
ksession.AddBan(ParamAddBan) (error)Parameter
Type
ID
int64
Reason
string
Proof
string
Name
string
Discriminator
int
ModeratorID
int64
CanBeAppealed
bool
err := ksession.AddBan(ksoftgo.ParamAddBan{ID: 670167728568532993, Proof: "https://i.imgur.com/6oQEqeL.png", Reason: "DM Advertisement"})List all bans
Parameter
Type
page
int
perpage
int
Last updated
Was this helpful?