# click to disable pings (e.g. partner pings)

<figure><img src="https://1355643618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LjUSz3NQrpyR-tHhUV-%2Fuploads%2FNUd2EDIdm1EBWVu3OPB8%2Fimage.png?alt=media&#x26;token=ee9df7e8-ec48-4798-8f49-bb9d39dbe7f8" alt="" width="563"><figcaption><p>the completed disable pings example</p></figcaption></figure>

in order to do this, first, we're going to make a role called "disable partner pings".

<figure><img src="https://1355643618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LjUSz3NQrpyR-tHhUV-%2Fuploads%2FxIGTekRKkz4vH61vHbzX%2Fimage.png?alt=media&#x26;token=24771168-646b-4c53-9992-6f8b74d175aa" alt="" width="375"><figcaption><p>disable partner pings role creation</p></figcaption></figure>

then, we're going to first create two different channels:

1. \#partners channel -- this is the channel where you send the partnered servers and ping everyone.
   1. for this channel, we're going to go to the channel settings, edit channel permissions, and make three adjustments:

      1. add the role **disable partner pings** and turn off "view channel"![](https://1355643618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LjUSz3NQrpyR-tHhUV-%2Fuploads%2FRTkQcG07FRej0O8SdaBj%2Fimage.png?alt=media\&token=4dfb45fb-aaf3-4b91-83ec-922e4351bff2)
      2. for the @**everyone** role, keep it at "/" for "view channel", but turn off  "send messages"

      ![](https://1355643618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LjUSz3NQrpyR-tHhUV-%2Fuploads%2Fhnv9O7NMGqVE4HnkUtdM%2Fimage.png?alt=media\&token=a548c821-3ecb-44bc-9350-e2d617fadc02)
2. \#disable-ping channel&#x20;

<figure><img src="https://1355643618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LjUSz3NQrpyR-tHhUV-%2Fuploads%2FhlSmqK46VnTkmPXcPXka%2Fimage.png?alt=media&#x26;token=496b5e57-a50f-43f1-bd8a-2282da65007b" alt=""><figcaption><p>it should look like this</p></figcaption></figure>

### now that you've completed your permissions, we are going to make a button responder.

here's the command

**`/buttonresponder add`**`name:partner_disable reply:{addrole: @disable partner pings !}{embed} - you have disabled partner pings ♡ label:click to disable partner ping emoji::icon_disabled: color:grey`

<figure><img src="https://1355643618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LjUSz3NQrpyR-tHhUV-%2Fuploads%2FP9dKbHByJsSGkdyecJtd%2Fimage.png?alt=media&#x26;token=3e28416a-c312-48a4-824d-739e5b32fb0f" alt="" width="375"><figcaption><p>the command in completion</p></figcaption></figure>

by putting **{addrole: @role}**, it will add the disable ping role, which, if we did the permissions correctly in the previous step, will allow disabling of the ping.

{% hint style="info" %}

### you can also attach a second button to re-enable pings if you want, which works in a similar fashion. **just remember to add {addbutton:partner\_enable}** into your **/send** command as well.

**`/buttonresponder add`**`name:partner_enable reply:{removerole: @disable partner pings !}{embed} - you have re-enabled partner pings ! thank you for supporting our server label:click to enable partner pings emoji::icon_enabled: color:blue`

<img src="https://1355643618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LjUSz3NQrpyR-tHhUV-%2Fuploads%2FLJtoDNrKM5RwMiLgmoc2%2Fimage.png?alt=media&#x26;token=461abba0-431c-47e7-986b-df48ad895f89" alt="" data-size="original">
{% endhint %}

### finally, use the /send command to make a message in #disable-ping which allows them to click the button.

`/send content:{embed}`` `**`please click the button below to disable pings if you don't want to be pinged anymore !`**` ``{addbutton:partner_disable} channel:#disable-ping`

<figure><img src="https://1355643618-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LjUSz3NQrpyR-tHhUV-%2Fuploads%2F33wbQfDTbvv8d7u3KgNV%2Fimage.png?alt=media&#x26;token=651d5486-6b86-4a8d-849f-dbec93e8cb43" alt=""><figcaption><p>the completed send command</p></figcaption></figure>
