Discord integration not working

I have a small Minecraft server running on a laptop at my house to play with my friends and I am monitoring it via the Minecraft integration on Hassio.
Some times for some reason it stops working and I want to make so whenever it happens, hassio sends a message to my discord server so my friends know that they can’t connect to the server, and I can see what’s going on right when it happens.
I tried to use the discord integration guide and I followed it step by step but it doesn’t send the message.
Hiere is the YML of the automation:

alias: Minecraft off
description: ''
trigger:
  - type: not_connected
    platform: device
    device_id: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    entity_id: binary_sensor.minecraft_server_status
    domain: binary_sensor
    for:
      hours: 0
      minutes: 0
      seconds: 10
      milliseconds: 0
condition: []
action:
  - service: notify.discord
    data:
      message: The server is offline
      target:
        - 'xxxxxxxxxxxxxxxxxx'
mode: restart

Please help me

Note: in the “message: …” I tried putting it on quotations but when I save it and come back they are gone, same for the brackets on “target: …”
I originally put it like this:

action:
  - service: notify.discord
    data:
      message: "The server is offline"
      target: ["xxxxxxxxxxxxxxxxxx"]

I don’t know if this has any thing to do