-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Complete work on storing original permission for locked channels
- Loading branch information
1 parent
bb61a66
commit 6cc8472
Showing
4 changed files
with
69 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 11 additions & 4 deletions
15
src/main/kotlin/org/hyacinthbots/lilybot/database/entities/LockedChannelData.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,21 @@ | ||
package org.hyacinthbots.lilybot.database.entities | ||
|
||
import dev.kord.common.entity.Permissions | ||
import dev.kord.common.entity.Snowflake | ||
import kotlinx.serialization.Contextual | ||
import kotlinx.serialization.Serializable | ||
|
||
/** | ||
* The data for locked channels. | ||
* | ||
* @property guildId The ID of the guild the locked channel is in | ||
* @property channelId The ID of the channel that is locked | ||
* @property allowed The Discord Bit Set code for the allowed permissions, formatted as a string | ||
* @property denied The Discord Bit Set code for the denied permissions, formatted as a string | ||
* @since 5.0.0 | ||
*/ | ||
@Serializable | ||
data class LockedChannelData( | ||
val guildId: Snowflake, | ||
val channelId: Snowflake, | ||
@Contextual val allowed: Permissions, | ||
@Contextual val denied: Permissions, | ||
val allowed: String, | ||
val denied: String, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters