Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MailSystem] Embeds or Messages #94

Open
SharkyTheKing opened this issue Jun 30, 2021 · 0 comments
Open

[MailSystem] Embeds or Messages #94

SharkyTheKing opened this issue Jun 30, 2021 · 0 comments
Labels
Priority: Low Status: Blocked Blocked due to concerns or whatever reason. Type: Enhancement

Comments

@SharkyTheKing
Copy link
Owner

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Low Status: Blocked Blocked due to concerns or whatever reason. Type: Enhancement
Projects
None yet
Development

No branches or pull requests

1 participant