📓
KSoftgo
  • KSoftgo
  • Response Types
  • Endpoints
    • Images
    • Bans
    • Kumo
    • Music
Powered by GitBook
On this page
  • Check if a user is banned
  • Get information about a ban
  • Report a user
  • List all bans

Was this helpful?

  1. Endpoints

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

ksession.GetBans(page, perpage) (BansList, error)

Parameter

Type

page

int

perpage

int

bans, err := ksession.GetBans(1, 12)
PreviousImagesNextKumo

Last updated 5 years ago

Was this helpful?