discordaio.guild¶
Classes¶
Guild: Represents a guildGuildMember: Represents a guild memberGuildEmbed: Represents a guild embedIntegrationAccount: Represents a integration accountIntegration: Represents a integrationBan: Represents a ban
-
class
discordaio.guild.Guild(id=0, name='', icon='', splash='', owner=False, owner_id=0, permissions=0, region='', afk_channel_id=0, afk_timeout=0, embed_enabled=False, embed_channel_id=0, verification_level=0, default_message_notifications=0, explicit_content_filter=0, roles=[], emojis=[], features=[], mfa_level=0, application_id=0, widget_enabled=False, widget_channel_id=0, system_channel_id=0, joined_at=None, large=None, unavailable=None, member_count=None, voice_states=None, members=[], channels=None, presences=None)[source]¶ Represents a guild
New in version 0.2.0.
Note
Guilds in Discord represent an isolated collection of users and channels, and are often referred to as “servers” in the UI.
-
permissions¶ total permissions for the user in the guild (does not include channel overrides)
Type: int, optional
is this guild unavailable
Type: bool, optional
Inheritance

-
await
create_channel(channel: discordaio.channel.Channel) → discordaio.channel.Channel[source]¶ Creates a new guild channel
New in version 0.3.0.
Parameters: channel – The channel to create.
-
await
delete() → None[source]¶ Deletes the guild
New in version 0.3.0.
Raises: AuthorizationError– Raised if you have no authorization to delete the guild.
-
await
get_channels() → discordaio.channel.Channel[source]¶ Returns a list of channels withing the guild.
New in version 0.3.0.
-
get_icon() → str[source]¶ Returns the guild icon
New in version 0.2.0.
Returns: The icon link Return type: str
-
await
get_member(member_id: int) → discordaio.guild.GuildMember[source]¶ Gets a guild member.
New in version 0.3.0.
Parameters: member_id – The member id
-
get_splash()[source]¶ Returns the guild splash
New in version 0.2.0.
Returns: The splash link Return type: str
-
is_owner(member: discordaio.guild.GuildMember) → bool[source]¶ Returns wether the guild member is the owner of the guild
New in version 0.2.0.
Parameters: member ( GuildMember) – The memberReturns: True if it’s the owner, False otherwise. Return type: bool
-
-
class
discordaio.guild.GuildMember(user=<User Object: #, 0>, nick='', roles=[], joined_at=None, deaf=False, mute=False)[source]¶ Represents a guild member
New in version 0.2.0.
Inheritance

-
class
discordaio.guild.GuildEmbed(enabled=False, channel_id=0)[source]¶ Represents a guild embed
New in version 0.2.0.
Inheritance

-
class
discordaio.guild.IntegrationAccount(id='', name='')[source]¶ Represents a integration account
New in version 0.2.0.
Inheritance


