Represents a channel in a guild that the current user is a member of and may be able to be linked to a lobby.
More...
#include <discordpp.h>
Represents a channel in a guild that the current user is a member of and may be able to be linked to a lobby.
Definition at line 2223 of file discordpp.h.
◆ GuildChannel() [1/2]
| discordpp::GuildChannel::GuildChannel |
( |
GuildChannel && | other | ) |
|
|
noexcept |
◆ GuildChannel() [2/2]
| discordpp::GuildChannel::GuildChannel |
( |
const GuildChannel & | arg0 | ) |
|
◆ Id()
| uint64_t discordpp::GuildChannel::Id |
( |
| ) |
const |
◆ IsLinkable()
| bool discordpp::GuildChannel::IsLinkable |
( |
| ) |
const |
Whether the current user is able to link this channel to a lobby.
For this to be true:
- The channel must be a guild text channel
- The channel may not be marked as NSFW
- The channel must not be currently linked to a different lobby
- The user must have the following permissions in the channel in order to link it:
- Manage Channels
- View Channel
- Send Messages
◆ IsViewableAndWriteableByAllMembers()
| bool discordpp::GuildChannel::IsViewableAndWriteableByAllMembers |
( |
| ) |
const |
Whether the channel is "fully public" which means every member of the guild is able to view and send messages in that channel.
Discord allows lobbies to be linked to private channels in a server, which enables things like a private admin chat.
However there is no permission synchronization between the game and Discord, so it is the responsibility of the game to restrict access to the lobby. Every member of the lobby will be able to view and send messages in the lobby/channel, regardless of whether that user would have permission to do so in Discord.
This may be more complexity than a game wants to take on, so instead you can only allow linking of channels that are fully public in the server so there is no confusion.
◆ LinkedLobby()
Information about the currently linked lobby, if any. Currently Discord enforces that a channel can only be linked to a single lobby.
◆ Name()
| std::string discordpp::GuildChannel::Name |
( |
| ) |
const |
◆ operator bool()
| discordpp::GuildChannel::operator bool |
( |
| ) |
const |
|
inline |
Returns true if the instance contains a valid object.
Definition at line 2244 of file discordpp.h.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ ParentId()
| std::optional< uint64_t > discordpp::GuildChannel::ParentId |
( |
| ) |
const |
The id of the parent category channel, if any.
◆ Position()
| int32_t discordpp::GuildChannel::Position |
( |
| ) |
const |
The position of the channel in the guild's channel list.
◆ SetId()
| void discordpp::GuildChannel::SetId |
( |
uint64_t | Id | ) |
|
◆ SetIsLinkable()
| void discordpp::GuildChannel::SetIsLinkable |
( |
bool | IsLinkable | ) |
|
◆ SetIsViewableAndWriteableByAllMembers()
| void discordpp::GuildChannel::SetIsViewableAndWriteableByAllMembers |
( |
bool | IsViewableAndWriteableByAllMembers | ) |
|
◆ SetLinkedLobby()
◆ SetName()
| void discordpp::GuildChannel::SetName |
( |
std::string | Name | ) |
|
◆ SetParentId()
| void discordpp::GuildChannel::SetParentId |
( |
std::optional< uint64_t > | ParentId | ) |
|
◆ SetPosition()
| void discordpp::GuildChannel::SetPosition |
( |
int32_t | Position | ) |
|
◆ SetType()
◆ Type()
◆ nullobj
The documentation for this class was generated from the following file: