maybe this is more clear regarding everyone pings (I have no clue if the described workaround works, too lazy)
This commit is contained in:
parent
891c544ad8
commit
d4f750ba68
4 changed files with 15 additions and 11 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue