UserService

class UserService(requestHandler: RequestHandler) : RestService(source)

Constructors

Link copied to clipboard
constructor(requestHandler: RequestHandler)

Functions

Link copied to clipboard
Link copied to clipboard
inline suspend fun createGroupDM(builder: GroupDMCreateBuilder.() -> Unit): DiscordChannel
Link copied to clipboard
Link copied to clipboard
suspend fun getCurrentUserGuilds(position: Position.BeforeOrAfter? = null, limit: Int? = null, withCounts: Boolean? = null): List<DiscordPartialGuild>
Link copied to clipboard
suspend fun getUser(userId: Snowflake): DiscordUser
Link copied to clipboard
Link copied to clipboard
suspend fun leaveGuild(guildId: Snowflake)
Link copied to clipboard
inline suspend fun modifyCurrentUser(builder: CurrentUserModifyBuilder.() -> Unit): DiscordUser