async def METHOD_NAME(self, ctx, name: str, priority_num: int):
    """Set a badge to profile.
    Options for priority number :
    `-1`: The badge will be invisible.
    `0`: The badge won't be show on your profile.
    Maximum to `5000`."""
    user = ctx.author
    userinfo = await self.db.users.find_one({"user_id": str(user.id)})
    userinfo = await self._badge_convert_dict(userinfo)
    if priority_num < -1 or priority_num > 5000:
        await ctx.send("Invalid priority number! -1-5000")
        return
    for badge in userinfo["badges"]:
        if userinfo["badges"][badge]["badge_name"] == name:
            userinfo["badges"][badge]["priority_num"] = priority_num
            await self.db.users.update_one(
                {"user_id": userinfo["user_id"]},
                {"$set": {"badges": userinfo["badges"]}},
            )
            await ctx.send(
                "The `{}` badge priority has been set to `{}`!".format(
                    userinfo["badges"][badge]["badge_name"], priority_num
                )
            )
            break
    else:
        await ctx.send("You don't have that badge!")