GuildRestAPIMethodsImpl

Constructors

Link copied to clipboard
constructor(yde: YDE)

Functions

Link copied to clipboard
open override fun banUser(guildId: Long, userId: Long, deleteMessageDuration: Duration, reason: String?): CompletableDeferred<NoResult>

Bans a user from the guild.

Link copied to clipboard
open override fun kickMember(guildId: Long, userId: Long, reason: String?): CompletableDeferred<NoResult>

Kicks a member from the guild.

Link copied to clipboard
open override fun requestedAuditLog(guildId: Long, userId: GetterSnowFlake?, limit: Int, before: GetterSnowFlake?, actionType: AuditLogType?): CompletableDeferred<AuditLog>

Request the audit log for the guild.

Link copied to clipboard
open override fun requestedBanList(guildId: Long): CompletableDeferred<List<Ban>>

Requests the ban list for the guild.

Link copied to clipboard
open override fun requestedGuild(guildId: Long): CompletableDeferred<Guild>

Request to get a guild by its id.

Link copied to clipboard
open override fun requestedGuilds(): CompletableDeferred<List<Guild>>

Request to get all the guilds the bot is in.

Link copied to clipboard
open override fun requestedMembers(guild: Guild, limit: Int?): CompletableDeferred<List<Member>>

Request to get the amount of members specified by the limit.

open fun requestedMembers(guild: Guild): CompletableDeferred<List<Member>>

Request to get all the members within the guild.

Link copied to clipboard
open override fun unbanUser(guildId: Long, userId: Long, reason: String?): CompletableDeferred<NoResult>

Unbans a user from the guild.

Properties

Link copied to clipboard
val yde: YDE