iBlitzkriegi / Vixio

Vixio, The Skript Addon made to fit all of your Discord needs.
http://www.vixio.space
40 stars 28 forks source link

Message won't send in a channel defined by variable #330

Open MinecollYT opened 3 years ago

MinecollYT commented 3 years ago

Describe the bug A newly created channel gets stored into a temp. variable and later that variable gets used to modify permissions and send a message. Not sure if the error also occurs when setting permission, but the bot does not want to send a message into the created channel.

To Reproduce Steps to reproduce the behavior:

  1. Copy the following code
            create the last made channel in event-guild and store it in {_channel}
            set {_id} to discord id of channel with name "%{_channel}%"
            set {_c} to channel named "%{_channel}%"
            wait 1 seconds
            reply with "%{_channel}% -- %{_id}% -- %{_c}%"
            allow event-member permissions (message history, view channel, message read, message write, message embed links and message attach files) in {_channel} with "REACT Bot"
            send "test" to channel with name "%{_channel}%" with "REACT Bot"
            send "test" to channel with id "%{_id}%" with "REACT Bot"
            send "test" to channel with name {_channel} with "REACT Bot"
            send "test" to channel with id {_id} with "REACT Bot"
            send "test" to {_channel} with "REACT Bot"
            send "test" to {_c} with "REACT Bot"
            #
            send "test" to channel with name "%{_channel}%" with event-bot
            send "test" to channel with id "%{_id}%" with event-bot
            send "test" to channel with name {_channel} with event-bot
            send "test" to channel with id {_id} with event-bot
            send "test" to {_channel} with event-bot
            send "test" to {_c} with event-bot

Information Skript version: 2.5.3 Vixio version: 2.0.8 Minecraft Version: paper-1.16.5 Server software name and version: Debian GNU/Linux 10 (buster)

Expected behavior Send a message into the channel / set permission

Screenshots

Additional context The output of the reply was "eba-40 -- 867329019812773918 -- eba-40"

MinecollYT commented 3 years ago

Setting permissions does not seem to work with variable either:

            else if arg-1 is "remove":
                if arg-2 parsed as user is set:
                    set {_user} to arg-2 parsed as user
                    deny {_user} parsed as member permissions (message history, view channel, message read, message write, message embed links and message attach files) in event-channel with event-bot