[docs]asyncdefcallback(self,interaction:DISCORD_INTERACTION_TYPE):ifself.view.author.id!=interaction.user.id:awaitinteraction.response.send_message(embed=awaitself.cog.pylav.construct_embed(messageable=interaction,description=_("You are not authorized to interact with this option.")),ephemeral=True,)awaitinteraction.response.send_message(embed=awaitself.cog.pylav.construct_embed(messageable=interaction,description=_("Disabling the following sources: {sources_list_variable_do_not_translate}.").format(sources_list_variable_do_not_translate=humanize_list(self.values)),),ephemeral=True,)
[docs]asyncdefcallback(self,interaction:DISCORD_INTERACTION_TYPE):playlist_id=self.values[0]self.node:Node=self.mapping.get(playlist_id)ifself.nodeisNone:awaitinteraction.response.send_message(embed=awaitself.cog.pylav.construct_embed(messageable=interaction,title=_("Node was not found.")),ephemeral=True,)self.view.stop()awaitself.view.on_timeout()returnself.responded.set()self.view.stop()awaitself.view.on_timeout()