Guilds#
Manager#
- class GuildManager(state: ConnectionState, cache: CacheStorage)#
Bases:
BaseManagerManager used to fetch
Guildobjects.- async fetch(guild_id: int) Guild#
Attempts to fetch a
Guildfrom the Discord API.- Parameters:
guild_id (
int) – The guild_id of the guild to fetch.- Returns:
The Message object recieved from Discord API.
- Return type:
- Raises:
NotFound – Could not find an guild with that ID.
Forbidden – You are not allowed to fetch that guild.
HTTPException – A HTTP error occured.
- async get_or_fetch(guild_id: int) Guild#
A couroutine function that attempts to fetch a
Guildfrom internal cache and if not present, makes an API call to discord.- Parameters:
guild_id (
int) – The guild_id of the guild to fetch.- Returns:
The Message object recieved from Discord API.
- Return type:
- Raises:
NotFound – Could not find an guild with that ID.
Forbidden – You are not allowed to fetch that guild.
HTTPException – A HTTP error occured.
Guilds#
Bases:
object
- class GuildScheduledEvent(data: GuildScheduledEventPayload, *, state: ConnectionState)#
Bases:
object- id#
- guild_id#
- channel_id#
- creator_id#
- name#
- description#
- scheduled_start_time#
- scheduled_end_time#
- privacy_level#
- status#
- entity_type#
- entity_id#
- entity_metadata#
- creator#
- user_count#
- image#
- recurrence_rule#
- class Guild(data: GuildPayload, *, state: ConnectionState)#
Bases:
object- id#
- name#
- icon#
- splash#
- discovery_splash#
- owner_id#
- afk_channel_id#
- afk_timeout#
- verification_level#
- default_message_notifications#
- explicit_level#
- roles#
- emojis#
- features#
- mfa_level#
- application_id#
- system_channel_id#
- system_channel_flags#
- rules_channel_id#
- max_presences#
- max_members#
- vanity_url_code#
- description#
- banner#
- preferred_locale#
- public_updates_channel_id#
- max_video_channel_users#
- max_stage_video_channel_users#
- approximate_member_count#
- approximate_presence_count#
- nsfw_level#
- stickers#
- safety_alerts_channel_id#
- joined_at#
- large#
- member_count#
- members#
- channels#
- threads#
- presences#
- stage_instances#
- guild_scheduled_events#
- voice_states#
- soundboard_sounds#
Emojis#
- class Emoji(data: EmojiPayload, *, state: ConnectionState)#
Bases:
object- id#
- name#
- roles#
- user#
- require_colons#
- managed#
- animated#
- available#
- asset#
- class DefaultReaction(data: DefaultReactionPayload)#
Bases:
objectRepresents a Default Reaction object that is shown in every thread in a
GUILD_FORUMandGUILD_MEDIA <mizuki.enums.channel.ChannelType.GUILD_MEDIAchannel.
Roles#
Stickers#
Guild Enums#
- class GuildFeature(*values)#
- ANIMATED_BANNER = 'ANIMATED_BANNER'#
- ANIMATED_ICON = 'ANIMATED_ICON'#
- APPLICATION_COMMAND_PERMISSIONS_V2 = 'APPLICATION_COMMAND_PERMISSIONS_V2'#
- AUTO_MODERATION = 'AUTO_MODERATION'#
- BANNER = 'BANNER'#
- COMMUNITY = 'COMMUNITY'#
- CREATOR_MONETIZABLE_PROVISIONAL = 'CREATOR_MONETIZABLE_PROVISIONAL'#
- CREATOR_STORE_PAGE = 'CREATOR_STORE_PAGE'#
- DEVELOPER_SUPPORT_SERVER = 'DEVELOPER_SUPPORT_SERVER'#
- DISCOVERABLE = 'DISCOVERABLE'#
- FEATURABLE = 'FEATURABLE'#
- INVITES_DISABLED = 'INVITES_DISABLED'#
- INVITE_SPLASH = 'INVITE_SPLASH'#
- MEMBER_VERIFICATION_GATE_ENABLED = 'MEMBER_VERIFICATION_GATE_ENABLED'#
- MORE_SOUNDBOARD = 'MORE_SOUNDBOARD'#
- MORE_STICKERS = 'MORE_STICKERS'#
- NEWS = 'NEWS'#
- PARTNERED = 'PARTNERED'#
- PREVIEW_ENABLED = 'PREVIEW_ENABLED'#
- RAID_ALERTS_DISABLED = 'RAID_ALERTS_DISABLED'#
- ROLE_ICONS = 'ROLE_ICONS'#
- ROLE_SUBSCRIPTIONS_AVAILABLE_FOR_PURCHASE = 'ROLE_SUBSCRIPTIONS_AVAILABLE_FOR_PURCHASE'#
- ROLE_SUBSCRIPTIONS_ENABLED = 'ROLE_SUBSCRIPTIONS_ENABLED'#
- SOUNDBOARD = 'SOUNDBOARD'#
- TICKETED_EVENTS_ENABLED = 'TICKETED_EVENTS_ENABLED'#
- VANITY_URL = 'VANITY_URL'#
- VERIFIED = 'VERIFIED'#
- VIP_REGIONS = 'VIP_REGIONS'#
- WELCOME_SCREEN_ENABLED = 'WELCOME_SCREEN_ENABLED'#
- GUESTS_ENABLED = 'GUESTS_ENABLED'#
- GUILD_TAGS = 'GUILD_TAGS'#
- ENHANCED_ROLE_COLORS = 'ENHANCED_ROLE_COLORS'#