Receive and interact with notifications? #613
Replies: 4 comments 3 replies
-
@dolfies I'm also curious about this, I can't find anything in the documentation in regards to it. Closest I've found was this, which I think only pertains to official dismissable messages and not ones sent by bots: discord.py-self/discord/settings.py Line 242 in 9c1047b |
Beta Was this translation helpful? Give feedback.
-
I don't think it's possible because I think that it's not really with the API (maybe with the app). (Also, I don't find any useful usages, can you give me examples ?) The only thing that interact with notifications that I know is: import datetime
import discord
from discord.ext import commands
bot = commands.Bot(command_prefix="!", self_bot=True, help_command=None)
@bot.event
async def on_ready():
today_date = datetime.datetime.today()
await bot.change_presence(status=discord.Status.idle,
afk=True,
idle_since=datetime.datetime(today_date.year, today_date.month, today_date.day))
bot.run("token") It's the way to receive notifcations even if the selfbot is running. I don't know if it was what you wanted, if not, can you be more specific ? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
didn't read the entire question ☠️ i don't think it is possible to interact with "ephemeral messages" i think you should put that on suggestions |
Beta Was this translation helpful? Give feedback.
-
Hi
Is there a way to listen for notification-type messages? i.e. those with "Only you can view this message - Dismiss" at the bottom.
Also, interacting with their buttons?
This is a DM with another bot whose buttons I want press, but it only works with regular messages received in on_message. Notifications or whatever they're called aren't even fired in on_message
Beta Was this translation helpful? Give feedback.
All reactions