maybe this is more clear regarding everyone pings (I have no clue if the described workaround works, too lazy)

This commit is contained in:
Jannik Reimers 2024-12-06 13:46:42 +01:00
parent 891c544ad8
commit d4f750ba68
Signed by: jansel
GPG key ID: 39C62D7D5233CFD0
4 changed files with 15 additions and 11 deletions

View file

@ -38,6 +38,12 @@ class StreamerCommand : Extension() {
return@action
}
}
if (arguments.role?.id == guild!!.id) {
respond {
content = "This action would implement a everyone ping. to properly use it please make a ping without role and insert the everyone ping manually."
}
return@action
}
StreamerCollection().addData(
guild!!.id,
arguments.channel.id,
@ -87,6 +93,12 @@ class StreamerCommand : Extension() {
val channelId = arguments.channel
val message = arguments.message
val temp = servers.find { it.guildId == guildId }
if (roleId?.id== guildId) {
respond {
content = "This action would implement a everyone ping. to properly use it please make a ping without role and insert the everyone ping manually."
}
return@action
}
if (temp != null) {
if (channelId != null) {
StreamerCollection().updateData(streamer, channelId.id, guildId)