withChannel

suspend fun withChannel(channelObj: ChannelBehavior): StorageUnit<T>

Copy this StorageUnit, applying the given channel's ID to its context, but only if it's not a DM channel.


fun withChannel(channelId: Snowflake): StorageUnit<T>

Copy this StorageUnit, applying the given channel ID to its context, but only if it's not a DM channel.