We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c49da9 commit 7c173c9Copy full SHA for 7c173c9
src/main/kotlin/net/azisaba/guildchatdiscord/InterChatPacketListener.kt
@@ -1,6 +1,7 @@
1
package net.azisaba.guildchatdiscord
2
3
import dev.kord.common.entity.Snowflake
4
+import dev.kord.rest.builder.message.AllowedMentionsBuilder
5
import dev.kord.rest.request.RestRequestException
6
import dev.kord.rest.service.RestClient
7
import kotlinx.coroutines.runBlocking
@@ -44,6 +45,7 @@ object InterChatPacketListener : PacketListener {
44
45
try {
46
restClient.webhook.executeWebhook(Snowflake(webhookId.toULong()), webhookToken) {
47
content = plainText
48
+ allowedMentions = AllowedMentionsBuilder()
49
}
50
} catch (e: RestRequestException) {
51
if (e.status.code == 404) {
0 commit comments