Skip to content

[MailSystem] Embeds or Messages #94

@SharkyTheKing

Description

@SharkyTheKing

There is a command that lets servers decide if they want an embed or message to be sent to and from users.

I have yet to handle the full functionality, I have two small functions which handle these. One handles the message for staff, the other handle whether it is an embed or message., but I've not incorporated them yet into the commands yet. Another function needs to be added to handle the user's side if it'll be a message.

The two functions are:

    async def returning_content(self, ctx: commands.Context, contents: str, anonymous: bool):
        """
        A regular message that gets sent to either staff or user
        """
        if anonymous:
            return f"**Anonymous Staff: {contents}**"
        else:
            return f"**{ctx.author.name}: {contents}**"

    async def _return_embed_or_content(self, ctx) -> bool:
        context = await self.config.guild(ctx.guild).embed_embeds()
        return True if context else False

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions