async def send_pages(self): empty = discord.Embed.Empty destination = self.get_destination() for page in self.paginator.pages: embed = discord.Embed(title=empty, description=page, color=get_top_role_color(self.context.me)) await destination.send(embed=embed)
def success(message: str, member: Union[Member, User, None]) -> Embed: """ Constructs success embed with fixed title:Success and color depending on passed member top role color. :param message: embed description :param member: member object to get the color of it's top role from, usually our bot member object from the specific guild. :return: Embed object """ return simple_embed(message, "Success", misc.get_top_role_color(member))
def success_embed(message: str, member: Member) -> Embed: """ Constructs success embed with fixed title:Success and color depending on passed member top role color. This will be used quite common so no sense to hard-code green colour since we want most of the messages the bot sends to be the color of it's top role. :param message: embed description :param member: member object to get the color of it's top role from, usually our bot member object from the specific guild. :return: Embed object """ return _simple_embed(message, "Success", misc.get_top_role_color(member))
def info(message: str, member: Union[Member, User, None], title: str = Embed.Empty) -> Embed: """ Constructs info embed with custom title and description. Color depends on passed member top role color. :param message: embed description :param member: member/user object to get the color of it's top role from :param title: title of embed :return: Embed object """ embed = Embed(title=title, description=message, color=misc.get_top_role_color(member)) return embed