GuildAPI

Undocumented in source.
struct GuildAPI {}

Constructors

this
this(Snowflake id, void delegate(scope HTTPClientRequest req) @(safe) requester)
Undocumented in source.

Members

Functions

addMember
GuildMember addMember(Snowflake userID, AddGuildMemberArgs args)
Undocumented in source. Be warned that the author may not have intended to support it.
addMemberRole
void addMemberRole(Snowflake user, Snowflake role)
Undocumented in source. Be warned that the author may not have intended to support it.
banUser
void banUser(Snowflake user, string reason, int deleteMessageDays)
Undocumented in source. Be warned that the author may not have intended to support it.
bans
Ban[] bans()
Undocumented in source. Be warned that the author may not have intended to support it.
changeNickname
string changeNickname(string nickname)
Undocumented in source. Be warned that the author may not have intended to support it.
channels
Channel[] channels()
Undocumented in source. Be warned that the author may not have intended to support it.
checkPrune
int checkPrune(int days)
Undocumented in source. Be warned that the author may not have intended to support it.
createChannel
Channel createChannel(ChannelArgs args)
Undocumented in source. Be warned that the author may not have intended to support it.
createIntegration
void createIntegration(string type, Snowflake id)
Undocumented in source. Be warned that the author may not have intended to support it.
createRole
Role createRole(RoleCreateArgs role)
Undocumented in source. Be warned that the author may not have intended to support it.
deleteGuild
void deleteGuild()
Undocumented in source. Be warned that the author may not have intended to support it.
deleteIntegration
void deleteIntegration(Snowflake id)
Undocumented in source. Be warned that the author may not have intended to support it.
embed
GuildEmbed embed(Snowflake id)
Undocumented in source. Be warned that the author may not have intended to support it.
get
Guild get()
Undocumented in source. Be warned that the author may not have intended to support it.
guildMember
GuildMember guildMember(Snowflake userID)
Undocumented in source. Be warned that the author may not have intended to support it.
integration
Integration[] integration()
Undocumented in source. Be warned that the author may not have intended to support it.
invites
Invite[] invites()
Undocumented in source. Be warned that the author may not have intended to support it.
kickUser
void kickUser(Snowflake user)
Undocumented in source. Be warned that the author may not have intended to support it.
members
GuildMember[] members(int limit, Snowflake after)
Undocumented in source. Be warned that the author may not have intended to support it.
modifyMember
void modifyMember(Snowflake userID, ChangeGuildMemberArgs args)
Undocumented in source. Be warned that the author may not have intended to support it.
moveChannel
void moveChannel(Snowflake channel, int position)
Undocumented in source. Be warned that the author may not have intended to support it.
moveRole
Role[] moveRole(Snowflake role, int position)
Undocumented in source. Be warned that the author may not have intended to support it.
pruneMembers
int pruneMembers(int days)
Undocumented in source. Be warned that the author may not have intended to support it.
removeMemberRole
void removeMemberRole(Snowflake user, Snowflake role)
Undocumented in source. Be warned that the author may not have intended to support it.
removeRole
void removeRole(Snowflake id)
Undocumented in source. Be warned that the author may not have intended to support it.
roles
Role[] roles()
Undocumented in source. Be warned that the author may not have intended to support it.
syncIntegration
void syncIntegration(Snowflake id)
Undocumented in source. Be warned that the author may not have intended to support it.
unbanUser
void unbanUser(Snowflake user)
Undocumented in source. Be warned that the author may not have intended to support it.
updateEmbed
GuildEmbed updateEmbed(GuildEmbed embed)
Undocumented in source. Be warned that the author may not have intended to support it.
updateGuild
Guild updateGuild(Update update)
Undocumented in source. Be warned that the author may not have intended to support it.
updateGuildIntegration
void updateGuildIntegration(Snowflake id, int expireBehavior, int expireGracePeriod, bool enableEmoticons)
Undocumented in source. Be warned that the author may not have intended to support it.
updateRole
Role updateRole(Snowflake id, RoleCreateArgs role)
Undocumented in source. Be warned that the author may not have intended to support it.
vanityUrl
string vanityUrl()
Undocumented in source. Be warned that the author may not have intended to support it.
voiceRegions
VoiceRegion[] voiceRegions()
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

AddGuildMemberArgs
struct AddGuildMemberArgs
Undocumented in source.
ChangeGuildMemberArgs
struct ChangeGuildMemberArgs
Undocumented in source.
ChannelArgs
struct ChannelArgs
Undocumented in source.
RoleCreateArgs
struct RoleCreateArgs
Undocumented in source.
Update
struct Update
Undocumented in source.

Variables

endpoint
string endpoint;
Undocumented in source.
requester
void delegate(scope HTTPClientRequest req) @(safe) requester;
Undocumented in source.

Meta