You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
asyncdefreturning_content(self, ctx: commands.Context, contents: str, anonymous: bool):
""" A regular message that gets sent to either staff or user """ifanonymous:
returnf"**Anonymous Staff: {contents}**"else:
returnf"**{ctx.author.name}: {contents}**"asyncdef_return_embed_or_content(self, ctx) ->bool:
context=awaitself.config.guild(ctx.guild).embed_embeds()
returnTrueifcontextelseFalse
The text was updated successfully, but these errors were encountered:
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:
The text was updated successfully, but these errors were encountered: