Role Pinging for Bots

評論

23 條評論

  • brocho

    I think you can ping roles. Probably was something like <&@role_id>

    0
  • jiralite

    This feature has been temporarily disabled for bots. It'll come back soon

    0
  • TheFlagen430297

    It is:
    <@&role_id>

    2
  • Fiberz

    I tried using the <@&role_id> method with YAGPDB, but when it says the role, it is coloured and everything but no notification is sent out. Any help?

    0
  • Odd Job Man

    ME TOO fiberz

     

    0
  • TheFlagen430297

    The “<@&role_id>“ is for the API, refer YAGPDB’s documentation for more information on its placeholders. Bots like that have something else like {@role-name} (MEE6 has this same system)

    Update!

    ok so I looked it up and you can use:

    mentionRoleName "rolename"

    or

    mentionRoleID roleID

    I would use RoleID imo

    here is a link: https://docs.yagpdb.xyz/reference/templates#user

     

    I hope this helps!

    1
  • Fiberz

    Hey TheFlagen430297,

    Will this method work on a yagpdb timer? I want a specific role to be pinged on a timer. If it will, would it be possible to send a ss? It would help a lot :)

    0
  • TheFlagen430297

    I have never used the bot but I’m sure that you can

    0
  • Fiberz

    It does work, thanks for your help!

    0
  • SnibyInRainbows

    I'm trying to do it with Arcane for a welcoming message (ping a "welcomer" role every time someone joins the server). "<@&role_id>" showed up but did not ping. {@role-name} did not work, neither did mentionRoleID roleID. Is anyone here familiar with arcane documentation? It says that these are the only tags available so is it even possible?

    0
  • TheFlagen430297

    Ok so to my knowledge it is not possible for Arcane bot to ping roles in the welcomer, I tried multiple ways of “coding it in” and it didn’t work. Sorry that I couldn’t help you out

    0
  • Fasty Da Panda

    TheFlagen430297

    I Tried alll of the methods but none seemed to work :( Any ideas?

    0
  • TheFlagen430297

    Fasty Da Panda

    What bot or programming language are you using? :)

    0
  • MaNiaK

    I have the same issue :(

    Basically, I use YAGPDB to send a message every time a streamer goes live. I use the Streaming announcement feature. However, I would like to ping a role when a streamer goes live. (the twitch notification role) 
    I cant find a way to make it so YAGPDB pings a role in the announcement message and the control pannel doesnt say anything about that.
    If someone knows how to ping with the streaming feature, it would be really appreciated :)

    0
  • Fiberz

    MaNiaK,

    Have you tried using the <@&roleid> format? For example, if you wanted to ping the twitch notification role, right-click on it in server settings and press copy ID, head over to the screen shown in your screenshot and type <@&(paste the ID)>. It would look something like <@&73624039649283> . Make sure to include the <> around the ID and the & at the start to distinguish it from a member ID. Hope that helps.

    0
  • SnibyInRainbows

    I don't know if it's the same for Yag, but I know when you do the <@&roleid> format with Arcane, the role shows up, however, it does not actually ping it. Like, if the role was called "YouTube" and the ID was 1234567890, then in your message said <@&1234567890>, then it would show up once sent as @YouTube (in whatever color the role is), however those with the YouTube role don't actually get pinged. I assume the purpose of this feature is for moderators who want to list roles (such as in react role and info channels) without actually pinging those with the roles. So I assume this would be true if a user or if a bot was pinging it.

    0
  • MaNiaK

    I tried the <@&roleid> method. The bot mentions the role, but it doesnt ping, its pretty unfortunate that we cant ping with yagpdb. Does someone know why or maybe has a way to ping?

    0
  • ZorroMundoYT

    you put it wrong. is <@&role-id> and not <&@role-id>

    0
  • lupus

    Is it still not working or is there anyway to bypass that?

    I mean for a public BOT

    0
  • coscal

    I can confirm that the aforementioned solution does indeed work on small bots. For months we've used a daily meet up reminder that pings an opt-in reminder role at 5pm. The placement of the '&' was the key. I do not know yet if being labeled as a public bot would make a difference though.

    0
  • Mighty Vertol

    i think its in embedded it wont ping.

    0
  • Purpell

    For YAGPDB, specifically for Custom commands, you do the following:

    Yooo {{mentionRoleID IDhere}}! New post!

    Where IDhere is just the ID numbers of the role. To find the ID you need to enable Developer Mode, then go on any chat (of the server in question) and type \@Role  (I recommend first mention the role and then type \ behind it). On Yag then, show look something like that:

    Yooo {{mentionRoleID 859253753508659223}}! New post!

    It will ping.

    1
  • coscal

    Just to clarify, the method is only for internal bot code, not for use in the discord chat bar.
    It does work for internal code, as I'm currently using it for a daily notice on a personal bot.
    For example, if you needed to send it in through the chat bar, you'd collect an ID and pass it through with the other part of your message, or have the bot wait for a second follow-up message. Use an f-string, and just call the ID in. For example: f" \<@&{value}> ping this role"

    (Without the\)
    This would be message string you're going to send.

    0

登入寫評論。