import discord
from discord.ext import commands


class CustomContext(commands.Context):
    async def error(self, title: str, description: str = None):
        em = discord.Embed(
            title=f":no_entry_sign: {title}",
            color=discord.Color.dark_red(),
            description=description,
        )

        await self.send(embed=em)

    async def success(self, title: str, description: str = None):
        em = discord.Embed(
            title=f":white_check_mark: {title}",
            color=discord.Color.dark_green(),
            description=description,
        )

        await self.send(embed=em)

import discord
from discord.ext import commands


class CustomContext(commands.Context):
    async def error(self, title: str, description: str = None):
        em = discord.Embed(
            title=f":no_entry_sign: {title}",
            color=discord.Color.dark_red(),
            description=description or '',
        )

        await self.send(embed=em)

    async def success(self, title: str, description: str = None):
        em = discord.Embed(
            title=f":white_check_mark: {title}",
            color=discord.Color.dark_green(),
            description=description or '',
        )

        await self.send(embed=em)

Remove 'None' in embed description
Remove 'None' in embed description

  import discord
  from discord.ext import commands
  
  
  class CustomContext(commands.Context):
      async def error(self, title: str, description: str = None):
          em = discord.Embed(
              title=f":no_entry_sign: {title}",
              color=discord.Color.dark_red(),
-             description=description,
+             description=description or '',
          )
  
          await self.send(embed=em)
  
      async def success(self, title: str, description: str = None):
          em = discord.Embed(
              title=f":white_check_mark: {title}",
              color=discord.Color.dark_green(),
-             description=description,
+             description=description or '',
          )
  
          await self.send(embed=em)
  
Remove 'None' in embed description
## Code Before:
import discord
from discord.ext import commands


class CustomContext(commands.Context):
    async def error(self, title: str, description: str = None):
        em = discord.Embed(
            title=f":no_entry_sign: {title}",
            color=discord.Color.dark_red(),
            description=description,
        )

        await self.send(embed=em)

    async def success(self, title: str, description: str = None):
        em = discord.Embed(
            title=f":white_check_mark: {title}",
            color=discord.Color.dark_green(),
            description=description,
        )

        await self.send(embed=em)

## Instruction:
Remove 'None' in embed description
## Code After:
import discord
from discord.ext import commands


class CustomContext(commands.Context):
    async def error(self, title: str, description: str = None):
        em = discord.Embed(
            title=f":no_entry_sign: {title}",
            color=discord.Color.dark_red(),
            description=description or '',
        )

        await self.send(embed=em)

    async def success(self, title: str, description: str = None):
        em = discord.Embed(
            title=f":white_check_mark: {title}",
            color=discord.Color.dark_green(),
            description=description or '',
        )

        await self.send(embed=em)
