WelcomeScreenChannel

Represents a featured channel by a welcome screen.

Attributes

channel_id : int

The represented channel's identifier.

description : None, str

The channel's short description.

emoji : None, Emoji

An emoji displayed before the description.

Properties

channel

Returns the welcome channel's respective channel.

Returns

channel : Channel

Methods

__new__(...)

Creates a new welcome channel.

ParameterTypeOptionalKeyword onlyDescription
channel_id

int, Channel

The represented channel or its identifier.

description

None, str

The channel's short description.

emoji

None, Emoji

An emoji displayed before the description.

Raises

TypeError

  • If a parameter's type is incorrect.

ValueError

  • If a parameter's value is incorrect.

copy()

Copies the welcome channel.

Returns

new : instance<type<self>>

copy_with(...)

Creates a new welcome channel with the given fields.

ParameterTypeOptionalKeyword onlyDescription
channel_id

int, Channel

The represented channel or its identifier.

description

None, str

The channel's short description.

emoji

None, Emoji

An emoji displayed before the description.

Returns

new : instance<type<self>>

Raises

TypeError

  • If a parameter's type is incorrect.

ValueError

  • If a parameter's value is incorrect.

from_data(data)

Creates a new welcome channel instance from the given data.

ParameterTypeDescription
data

dict of (str, object) items

Welcome channel data.

Returns

new : instance<cls>

to_data(...)

Converts the welcome channel to a json serializable object.

ParameterTypeOptionalKeyword onlyDefaultDescription
defaults

bool

False

Whether default values should be included as well.

Returns

data : str

__eq__()

Returns whether the two welcome channels are equal.

__getattr__()

Drops a rich attribute error.

__hash__()

Returns the welcome channel's hash.

__repr__()

Returns the welcome channel's representation.