You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/kotlin/io/zachbr/dis4irc/bridge/command/executors/PinnedMessagesCommand.kt
+14-8Lines changed: 14 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -23,17 +23,23 @@ class PinnedMessagesCommand(private val bridge: Bridge) : Executor {
23
23
}
24
24
25
25
val mappedChannel = bridge.channelMappings.getMappingFor(command.source) ?:throwIllegalStateException("No mapping for source channel: ${command.source}?!?")
26
-
val pinnedMessages = bridge.discordConn.getPinnedMessages(mappedChannel) ?:returnnull
27
26
// TODO add max limit (10 most recent?), flood concerns, UX spam, opinionated
0 commit comments