WelcomeScreenChannel
Represents a featured channel by a welcome screen.
Attributes
int
The represented channel's identifier.
None
, str
The channel's short description.
None
, Emoji
An emoji displayed before the description
.
Properties
channel
Methods
(...)
__new__Creates a new welcome channel.
Parameter | Type | Optional | Keyword only | Description |
---|---|---|---|---|
channel_id |
| The represented channel or its identifier. | ||
description |
| The channel's short description. | ||
emoji |
| An emoji displayed before the |
Raises
TypeError
- If a parameter's type is incorrect.
ValueError
- If a parameter's value is incorrect.
()
copyCopies the welcome channel.
Returns
new : instance<type<self>>
(...)
copy_withCreates a new welcome channel with the given fields.
Parameter | Type | Optional | Keyword only | Description |
---|---|---|---|---|
channel_id |
| The represented channel or its identifier. | ||
description |
| The channel's short description. | ||
emoji |
| An emoji displayed before the |
Returns
new : instance<type<self>>
Raises
TypeError
- If a parameter's type is incorrect.
ValueError
- If a parameter's value is incorrect.
(data)
from_dataCreates a new welcome channel instance from the given data.
Parameter | Type | Description |
---|---|---|
data |
| Welcome channel data. |
Returns
new : instance<cls>
(...)
to_dataConverts the welcome channel to a json serializable object.
Parameter | Type | Optional | Keyword only | Default | Description |
---|---|---|---|---|---|
defaults |
|
| 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.