-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathembeds.py
66 lines (49 loc) · 1.99 KB
/
embeds.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
from nextcord import Embed
from nextcord import Color
# File for keeping embeds that are used frequently
def success_embed(message):
embed = Embed(title='Success!',
description=message,
color=Color.green())
return embed
def error_embed(message):
embed = Embed(title='Error!',
description=message,
color=Color.red())
return embed
def warning_embed(message):
embed = Embed(title='Warning!',
description=message,
color=Color.orange())
return embed
def thanks_embed(message):
embed = Embed(title='Thank You!',
description=message,
color=Color.green())
return embed
def banned_word_embed(guild, word):
message = f'Your message was deleted in {guild.name} because it contained the banned word {word}.'
embed = Embed(title='Message Deleted!',
description=message,
color=Color.orange())
embed.set_thumbnail(url=guild.icon_url)
return embed
def permission_denied_embed():
return error_embed('Permission Denied!')
def restricted_embed(guild):
message = f"""You are currently restricted from using commands in {guild.name}!\n
You can continue to use Joy's functions in other servers or in DMs!
Speak with a moderator of {guild.name} to get more information!"""
embed = Embed(title='Restricted User Warning!',
description=message,
color=Color.orange())
embed.set_thumbnail(url=guild.icon_url)
return embed
def perma_embed():
message = f"""You are currently restricted from adding to Joy!\n
You can continue to use Joy's functions, but adding to Joy has been disabled.
Speak with a moderator of Joy to get more information."""
embed = Embed(title='Restricted User Warning!',
description=message,
color=Color.orange())
return embed