dico.model.guild module

class dico.model.guild.Guild(client, resp)

Bases: DiscordObjectBase

TYPING

alias of Union[int, str, Snowflake, Guild]

RESPONSE

alias of Union[Guild, Awaitable[Guild]]

RESPONSE_AS_LIST

alias of Union[List[Guild], Awaitable[List[Guild]]]

icon_url(*, extension='webp', size=1024)
splash_url(*, extension='webp', size=1024)
discovery_splash_url(*, extension='webp', size=1024)
banner_url(*, extension='webp', size=1024)
request_preview()
delete()
modify(**kwargs)
property edit
request_channels()
create_channel(name, **kwargs)
modify_channel_positions(*params, reason=None)
list_active_threads()
request_member(user)
list_members(limit=None, after=None)
remove_guild_member(user)
property kick
create_ban(user, *, delete_message_days=None, reason=None)
property ban
remove_ban(user, *, reason=None)
property unban
request_roles()
create_role(*, name=None, permissions=None, color=None, hoist=None, mentionable=None, reason=None)
modify_role_positions(*params, reason=None)
modify_role(role, *, name=Empty, permissions=Empty, color=Empty, hoist=Empty, mentionable=Empty, reason=None)
delete_role(role, *, reason=None)
request_prune_count(*, days=None, include_roles=None)
begin_prune(*, days=7, compute_prune_count=True, include_roles=None, reason=None)
property prune
request_voice_regions()
request_invites()
request_integrations()
delete_integration(integration, *, reason=None)
request_widget_settings()
modify_widget(*, enabled=None, channel=Empty, reason=None)
request_widget()
request_vanity_url()
request_widget_image(style=None)
request_welcome_screen()
modify_guild_welcome_screen(*, enabled=Empty, welcome_channels=Empty, description=Empty, reason=None)
modify_user_voice_state(channel, user='@me', *, suppress=None, request_to_speak_timestamp=None)
leave()
property guild_scheduled_events
property cache
property get

Alias of Guild.cache.get.

get_owner()
raw
id
client
class dico.model.guild.DefaultMessageNotificationLevel(value)

Bases: TypeBase

ALL_MESSAGES = 0
ONLY_MENTIONS = 1
class dico.model.guild.ExplicitContentFilterLevel(value)

Bases: TypeBase

DISABLED = 0
MEMBERS_WITHOUT_ROLES = 1
ALL_MEMBERS = 2
class dico.model.guild.MFALevel(value)

Bases: TypeBase

NONE = 0
ELEVATED = 1
class dico.model.guild.VerificationLevel(value)

Bases: TypeBase

NONE = 0
LOW = 1
MEDIUM = 2
HIGH = 3
VERY_HIGH = 4
class dico.model.guild.NSFWLevel(value)

Bases: TypeBase

DEFAULT = 0
EXPLICIT = 1
SAFE = 2
AGE_RESTRICTED = 3
class dico.model.guild.PremiumTier(value)

Bases: TypeBase

NONE = 0
TIER_1 = 1
TIER_2 = 2
TIER_3 = 3
class dico.model.guild.SystemChannelFlags(*args, **kwargs)

Bases: FlagBase

SUPPRESS_JOIN_NOTIFICATIONS = 1
SUPPRESS_PREMIUM_SUBSCRIPTIONS = 2
SUPPRESS_GUILD_REMINDER_NOTIFICATIONS = 4
SUPPRESS_JOIN_NOTIFICATION_REPLIES = 8
SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATIONS = 16
SUPPRESS_ROLE_SUBSCRIPTION_PURCHASE_NOTIFICATION_REPLIES = 32
class dico.model.guild.GuildPreview(client, resp)

Bases: object

RESPONSE

alias of Union[GuildPreview, Awaitable[GuildPreview]]

class dico.model.guild.GuildWidgetSettings(resp)

Bases: object

RESPONSE

alias of Union[GuildWidgetSettings, Awaitable[GuildWidgetSettings]]

RESPONSE_AS_LIST

alias of Union[List[GuildWidgetSettings], Awaitable[List[GuildWidgetSettings]]]

class dico.model.guild.GuildWidget(client, resp)

Bases: object

RESPONSE

alias of Union[GuildWidget, Awaitable[GuildWidget]]

RESPONSE_AS_LIST

alias of Union[List[GuildWidget], Awaitable[List[GuildWidget]]]

class dico.model.guild.GuildMember(client, resp, *, user=None, guild_id=None)

Bases: object

TYPING

alias of Union[int, str, Snowflake, GuildMember]

RESPONSE

alias of Union[GuildMember, Awaitable[GuildMember]]

RESPONSE_AS_LIST

alias of Union[List[GuildMember], Awaitable[List[GuildMember]]]

avatar_url(*, extension='webp', size=1024)
remove()
property kick
ban(*, delete_message_days=None, reason=None)
property id
property mention
property permissions
classmethod create(client, resp, *, user=None, guild_id=None, cache=True)
class dico.model.guild.Integration(client, resp)

Bases: object

TYPING

alias of Union[int, str, Snowflake, Integration]

RESPONSE

alias of Union[Integration, Awaitable[Integration]]

RESPONSE_AS_LIST

alias of Union[List[Integration], Awaitable[List[Integration]]]

property role
class dico.model.guild.IntegrationExpireBehaviors(value)

Bases: TypeBase

REMOVE_ROLE = 0
KICK = 1
class dico.model.guild.IntegrationAccount(resp)

Bases: object

class dico.model.guild.IntegrationApplication(client, resp)

Bases: object

icon_url(*, extension='webp', size=1024)
class dico.model.guild.Ban(client, resp)

Bases: object

RESPONSE

alias of Union[Ban, Awaitable[Ban]]

RESPONSE_AS_LIST

alias of Union[List[Ban], Awaitable[List[Ban]]]

class dico.model.guild.WelcomeScreen(resp)

Bases: object

RESPONSE

alias of Union[WelcomeScreen, Awaitable[WelcomeScreen]]

RESPONSE_AS_LIST

alias of Union[List[WelcomeScreen], Awaitable[List[WelcomeScreen]]]

to_dict()
class dico.model.guild.WelcomeScreenChannel(resp)

Bases: object

to_dict()
class dico.model.guild.Onboarding(client, resp)

Bases: object

RESPONSE

alias of Union[Onboarding, Awaitable[Onboarding]]

class dico.model.guild.OnboardingPrompt(client, resp)

Bases: object

class dico.model.guild.PromptOption(client, resp)

Bases: object

class dico.model.guild.OnboardingMode(value)

Bases: TypeBase

ONBOARDING_DEFAULT = 0
ONBOARDING_ADVANCED = 1
class dico.model.guild.PromptTypes(value)

Bases: TypeBase

MULTIPLE_CHOICE = 0
DROPDOWN = 1