Class ThreadListSyncEvent
java.lang.Object
discord4j.core.event.domain.Event
discord4j.core.event.domain.thread.ThreadEvent
discord4j.core.event.domain.thread.ThreadListSyncEvent
Sent when the current user gains access to a channel.
- See Also:
-
Constructor Summary
ConstructorDescriptionThreadListSyncEvent
(GatewayDiscordClient gateway, ShardInfo shardInfo, discord4j.discordjson.json.gateway.ThreadListSync dispatch) -
Method Summary
Modifier and TypeMethodDescriptionReturns the ID of the guild for this event.Returns the parent channel IDs whose threads are being synced.Returns all active threads in the given channels that the current user can access.Returns all thread member objects from the synced threads for the current user, indicating which threads the current user has been added totoString()
Methods inherited from class discord4j.core.event.domain.Event
getClient, getShardInfo
-
Constructor Details
-
ThreadListSyncEvent
public ThreadListSyncEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, discord4j.discordjson.json.gateway.ThreadListSync dispatch)
-
-
Method Details
-
getGuildId
Returns the ID of the guild for this event.- Returns:
- a
Snowflake
guild ID for this event
-
getSyncedChannelIds
Returns the parent channel IDs whose threads are being synced. If absent, then threads were synced for the entire guild. This array may contain channel IDs that have no active threads as well.- Returns:
- if present, a list of
Snowflake
channel IDs that are having their threads synced, otherwise if absent, means this sync event is for the entire guild.
-
getSyncedThreads
Returns all active threads in the given channels that the current user can access.- Returns:
- a list of
ThreadChannel
with all active threads for the current user
-
getThreadMembers
Returns all thread member objects from the synced threads for the current user, indicating which threads the current user has been added to -
toString
-